/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */
function e(e){return!0===function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}(e)&&"[object Object]"===Object.prototype.toString.call(e)}function t(t){var n,r;return!1!==e(t)&&("function"==typeof(n=t.constructor)&&(!1!==e(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}function i(e){var t={exports:{}};return e(t,t.exports),t.exports
/*! https://mths.be/esrever v0.2.0 by @mathias */}var a=i((function(e,t){!function(r){var o=t,i=e&&e.exports==o&&e,a="object"==typeof n&&n;a.global!==a&&a.window!==a||(r=a);var s=/([\0-\u02FF\u0370-\u1AAF\u1B00-\u1DBF\u1E00-\u20CF\u2100-\uD7FF\uE000-\uFE1F\uFE30-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])([\u0300-\u036F\u1AB0-\u1AFF\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]+)/g,u=/([\uD800-\uDBFF])([\uDC00-\uDFFF])/g,l=function(e){for(var t="",n=(e=e.replace(s,(function(e,t,n){return l(n)+t})).replace(u,"$2$1")).length;n--;)t+=e.charAt(n);return t},c={version:"0.2.0",reverse:l};if(o&&!o.nodeType)if(i)i.exports=c;else for(var f in c)c.hasOwnProperty(f)&&(o[f]=c[f]);else r.esrever=c}(n)}));function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function u(e){return!!e&&!!e[G]}function l(e){return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&Function.toString.call(n)===K}(e)||Array.isArray(e)||!!e[q]||!!e.constructor[q]||h(e)||g(e))}function c(e,t,n){void 0===n&&(n=!1),0===f(e)?(n?Object.keys:Y)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function f(e){var t=e[G];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:h(e)?2:g(e)?3:0}function d(e,t){return 2===f(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function p(e,t,n){var r=f(e);2===r?e.set(t,n):3===r?(e.delete(t),e.add(n)):e[t]=n}function h(e){return H&&e instanceof Map}function g(e){return V&&e instanceof Set}function v(e){return e.o||e.t}function y(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=X(e);delete t[G];for(var n=Y(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),w(e)||u(e)||!l(e)||(f(e)>1&&(e.set=e.add=e.clear=e.delete=b),Object.freeze(e),t&&c(e,(function(e,t){return m(t,!0)}),!0)),e}function b(){s(2)}function w(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function S(e){var t=Z[e];return t||s(18,e),t}function x(){return B}function E(e,t){t&&(S("Patches"),e.u=[],e.s=[],e.v=t)}function O(e){k(e),e.p.forEach(A),e.p=null}function k(e){e===B&&(B=e.l)}function T(e){return B={p:[],l:B,h:e,m:!0,_:0}}function A(e){var t=e[G];0===t.i||1===t.i?t.j():t.g=!0}function _(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||S("ES5").S(t,e,r),r?(n[G].P&&(O(t),s(4)),l(e)&&(e=P(t,e),t.l||C(t,e)),t.u&&S("Patches").M(n[G],e,t.u,t.s)):e=P(t,n,[]),O(t),t.u&&t.v(t.u,t.s),e!==W?e:void 0}function P(e,t,n){if(w(t))return t;var r=t[G];if(!r)return c(t,(function(o,i){return j(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return C(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=y(r.k):r.o;c(3===r.i?new Set(o):o,(function(t,i){return j(e,r,o,t,i,n)})),C(e,o,!1),n&&e.u&&S("Patches").R(r,n,e.u,e.s)}return r.o}function j(e,t,n,r,o,i){if(u(o)){var a=P(e,o,i&&t&&3!==t.i&&!d(t.D,r)?i.concat(r):void 0);if(p(n,r,a),!u(a))return;e.m=!1}if(l(o)&&!w(o)){if(!e.h.F&&e._<1)return;P(e,o),t&&t.A.l||C(e,o)}}function C(e,t,n){void 0===n&&(n=!1),e.h.F&&e.m&&m(t,n)}function N(e,t){var n=e[G];return(n?v(n):e)[t]}function L(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function R(e){e.o||(e.o=y(e.t))}function M(e,t,n){var r=h(t)?S("MapSet").N(t,n):g(t)?S("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=J;n&&(o=[r],i=Q);var a=Proxy.revocable(o,i),s=a.revoke,u=a.proxy;return r.k=u,r.j=s,u}(t,n):S("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function F(e){return u(e)||s(22,e),function e(t){if(!l(t))return t;var n,r=t[G],o=f(t);if(r){if(!r.P&&(r.i<4||!S("ES5").K(r)))return r.t;r.I=!0,n=D(t,o),r.I=!1}else n=D(t,o);return c(n,(function(t,o){r&&function(e,t){return 2===f(e)?e.get(t):e[t]}(r.t,t)===o||p(n,t,e(o))})),3===o?new Set(n):n}(e)}function D(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return y(e)}var z,B,U="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),H="undefined"!=typeof Map,V="undefined"!=typeof Set,$="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,W=U?Symbol.for("immer-nothing"):((z={})["immer-nothing"]=!0,z),q=U?Symbol.for("immer-draftable"):"__$immer_draftable",G=U?Symbol.for("immer-state"):"__$immer_state",K=""+Object.prototype.constructor,Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Z={},J={get:function(e,t){if(t===G)return e;var n=v(e);if(!d(n,t))return function(e,t,n){var r,o=L(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!l(r)?r:r===N(e.t,t)?(R(e),e.o[t]=M(e.A.h,r,e)):r},has:function(e,t){return t in v(e)},ownKeys:function(e){return Reflect.ownKeys(v(e))},set:function(e,t,n){var r=L(v(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=N(v(e),t),i=null==o?void 0:o[G];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(n,o)&&(void 0!==n||d(e.t,t)))return!0;R(e),I(e)}return e.o[t]===n&&"number"!=typeof n||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return void 0!==N(e.t,t)||t in e.t?(e.D[t]=!1,R(e),I(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=v(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){s(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){s(12)}},Q={};c(J,(function(e,t){Q[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Q.deleteProperty=function(e,t){return J.deleteProperty.call(this,e[0],t)},Q.set=function(e,t,n){return J.set.call(this,e[0],t,n,e[0])};var ee=new(function(){function e(e){var t=this;this.O=$,this.F=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&s(6),void 0!==r&&"function"!=typeof r&&s(7),l(e)){var u=T(t),c=M(t,e,void 0),f=!0;try{a=n(c),f=!1}finally{f?O(u):k(u)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return E(u,r),_(e,u)}),(function(e){throw O(u),e})):(E(u,r),_(a,u))}if(!e||"object"!=typeof e){if((a=n(e))===W)return;return void 0===a&&(a=e),t.F&&m(a,!0),a}s(21,e)},this.produceWithPatches=function(e,n){return"function"==typeof e?function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))}:[t.produce(e,n,(function(e,t){r=e,o=t})),r,o];var r,o},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){l(e)||s(8),u(e)&&(e=F(e));var t=T(this),n=M(this,e,void 0);return n[G].C=!0,k(t),n},t.finishDraft=function(e,t){var n=(e&&e[G]).A;return E(n,t),_(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!$&&s(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var o=S("Patches").$;return u(e)?o(e,t):this.produce(e,(function(e){return o(e,t.slice(n+1))}))},e}()),te=ee.produce;ee.produceWithPatches.bind(ee),ee.setAutoFreeze.bind(ee),ee.setUseProxies.bind(ee),ee.applyPatches.bind(ee);var ne=ee.createDraft.bind(ee),re=ee.finishDraft.bind(ee),oe=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};function ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ae=new WeakMap,se=new WeakMap,ue=new WeakMap,le=new WeakMap,ce=new WeakMap,fe=new WeakMap;function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var he=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of je.pathRefs(e))ze.transform(n,t);for(var r of je.pointRefs(e))Ve.transform(r,t);for(var o of je.rangeRefs(e))qe.transform(o,t);var i=new Set,a=[],s=e=>{if(e){var t=e.join(",");i.has(t)||(i.add(t),a.push(e))}},u=ae.get(e)||[],l=ge(t);for(var c of u){s(De.transform(c,t))}for(var f of l)s(f);ae.set(e,a),ct.transform(e,t),e.operations.push(t),je.normalize(e),"set_selection"===t.type&&(e.marks=null),se.get(e)||(se.set(e,!0),Promise.resolve().then((()=>{se.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;if(r)if(We.isExpanded(r))ct.setNodes(e,{[t]:n},{match:Ye.isText,split:!0});else{var o=pe(pe({},je.marks(e)||{}),{},{[t]:n});e.marks=o,se.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:n}=e;n&&We.isCollapsed(n)&&ct.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&We.isCollapsed(n)&&ct.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&We.isExpanded(n)&&ct.delete(e,{reverse:"backward"===t})},getFragment:()=>{var{selection:t}=e;return t?Ie.fragment(e,t):[]},insertBreak:()=>{ct.splitNodes(e,{always:!0})},insertFragment:t=>{ct.insertFragment(e,t)},insertNode:t=>{ct.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(We.isCollapsed(n)){var o=je.above(e,{match:t=>je.isInline(e,t),mode:"highest"});if(o){var[,i]=o;if(je.isEnd(e,n.anchor,i)){var a=je.after(e,i);ct.setSelection(e,{anchor:a,focus:a})}}}if(r){var s=pe({text:t},r);ct.insertNodes(e,s)}else ct.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!Ye.isText(n))if(Te.isElement(n)&&0===n.children.length){ct.insertNodes(e,{text:""},{at:r.concat(0),voids:!0})}else for(var o=!je.isEditor(n)&&(Te.isElement(n)&&(e.isInline(n)||0===n.children.length||Ye.isText(n.children[0])||e.isInline(n.children[0]))),i=0,a=0;a<n.children.length;a++,i++){var s=Ie.get(e,r);if(!Ye.isText(s)){var u=n.children[a],l=s.children[i-1],c=a===n.children.length-1;if((Ye.isText(u)||Te.isElement(u)&&e.isInline(u))!==o)ct.removeNodes(e,{at:r.concat(i),voids:!0}),i--;else if(Te.isElement(u)){if(e.isInline(u))if(null!=l&&Ye.isText(l)){if(c){ct.insertNodes(e,{text:""},{at:r.concat(i+1),voids:!0}),i++}}else{ct.insertNodes(e,{text:""},{at:r.concat(i),voids:!0}),i++}}else null!=l&&Ye.isText(l)&&(Ye.equals(u,l,{loose:!0})?(ct.mergeNodes(e,{at:r.concat(i),voids:!0}),i--):""===l.text?(ct.removeNodes(e,{at:r.concat(i-1),voids:!0}),i--):c&&""===u.text&&(ct.removeNodes(e,{at:r.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:n}=e;if(n)if(We.isExpanded(n))ct.unsetNodes(e,t,{match:Ye.isText,split:!0});else{var r=pe({},je.marks(e)||{});delete r[t],e.marks=r,se.get(e)||e.onChange()}}};return e},ge=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return De.levels(t);case"insert_node":var{node:n,path:r}=e;return[...De.levels(r),...Ye.isText(n)?[]:Array.from(Ie.nodes(n),(e=>{var[,t]=e;return r.concat(t)}))];case"merge_node":var{path:o}=e;return[...De.ancestors(o),De.previous(o)];case"move_node":var{path:i,newPath:a}=e;if(De.equals(i,a))return[];var s=[],u=[];for(var l of De.ancestors(i)){var c=De.transform(l,e);s.push(c)}for(var f of De.ancestors(a)){var d=De.transform(f,e);u.push(d)}var p=u[u.length-1],h=a[a.length-1],g=p.concat(h);return[...s,...u,g];case"remove_node":var{path:v}=e;return[...De.ancestors(v)];case"split_node":var{path:y}=e;return[...De.levels(y),De.next(y)];default:return[]}};function ve(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ye=/\s/,me=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,be=/['\u2018\u2019]/,we=e=>{for(var t=0,n=null,r=e.charCodeAt(0);r;)if(xe(r)){var o=Ee(r,e,t);if("SURR"===n||"BMP"===n)break;t+=2,n=o?"MOD":"SURR",r=e.charCodeAt(t)}else if(8205!==r)if(ke(r)){if(n&&"ZWJ"!==n&&"VAR"!==n)break;t+=1,n="BMP",r=e.charCodeAt(t)}else{if(!Oe(r)){if("MOD"===n){t+=1;break}break}if(n&&"ZWJ"!==n)break;t+=1,n="VAR",r=e.charCodeAt(t)}else t+=1,n="ZWJ",r=e.charCodeAt(t);return t||1},Se=(e,t)=>{if(ye.test(e))return!1;if(be.test(e)){var n=t.charAt(0),r=we(n);n=t.slice(0,r);var o=t.slice(r);if(Se(n,o))return!0}return!me.test(e)},xe=e=>55296<=e&&e<=57343,Ee=(e,t,n)=>{if(55356===e){var r=t.charCodeAt(n+1);return r<=57343&&r>=57339}return!1},Oe=e=>e<=65039&&e>=65024,ke=e=>10084===e||9794===e||9792===e||9760===e||9877===e||9992===e||9711===e,Te={isAncestor:e=>t(e)&&Ie.isNodeList(e.children),isElement:e=>t(e)&&Ie.isNodeList(e.children)&&!je.isEditor(e),isElementList:e=>Array.isArray(e)&&e.every((e=>Te.isElement(e))),isElementProps:e=>void 0!==e.children,matches(e,t){for(var n in t)if("children"!==n&&e[n]!==t[n])return!1;return!0}};function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pe=new WeakMap,je={above(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{voids:n=!1,mode:r="lowest",at:o=e.selection,match:i}=t;if(o){var a=je.path(e,o),s="lowest"===r;for(var[u,l]of je.levels(e,{at:a,voids:n,match:i,reverse:s}))if(!Ye.isText(u)&&!De.equals(a,l))return[u,l]}},addMark(e,t,n){e.addMark(t,n)},after(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:je.point(e,t,{edge:"end"}),focus:je.end(e,[])},{distance:i=1}=r,a=0;for(var s of je.positions(e,_e(_e({},r),{},{at:o}))){if(a>i)break;0!==a&&(n=s),a++}return n},before(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o={anchor:je.start(e,[]),focus:je.point(e,t,{edge:"start"})},{distance:i=1}=r,a=0;for(var s of je.positions(e,_e(_e({},r),{},{at:o,reverse:!0}))){if(a>i)break;0!==a&&(n=s),a++}return n},deleteBackward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteBackward(n)},deleteForward(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{unit:n="character"}=t;e.deleteForward(n)},deleteFragment(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{direction:n="forward"}=t;e.deleteFragment(n)},edges:(e,t)=>[je.start(e,t),je.end(e,t)],end:(e,t)=>je.point(e,t,{edge:"end"}),first(e,t){var n=je.path(e,t,{edge:"start"});return je.node(e,n)},fragment(e,t){var n=je.range(e,t);return Ie.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>je.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>Ye.isText(t)||je.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>Ye.isText(e))),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>Te.isElement(t)&&!e.isInline(t),isEditor(e){if(!t(e))return!1;var n=Pe.get(e);if(void 0!==n)return n;var r="function"==typeof e.addMark&&"function"==typeof e.apply&&"function"==typeof e.deleteBackward&&"function"==typeof e.deleteForward&&"function"==typeof e.deleteFragment&&"function"==typeof e.insertBreak&&"function"==typeof e.insertFragment&&"function"==typeof e.insertNode&&"function"==typeof e.insertText&&"function"==typeof e.isInline&&"function"==typeof e.isVoid&&"function"==typeof e.normalizeNode&&"function"==typeof e.onChange&&"function"==typeof e.removeMark&&(null===e.marks||t(e.marks))&&(null===e.selection||We.isRange(e.selection))&&Ie.isNodeList(e.children)&&Fe.isOperationList(e.operations);return Pe.set(e,r),r},isEnd(e,t,n){var r=je.end(e,n);return He.equals(t,r)},isEdge:(e,t,n)=>je.isStart(e,t,n)||je.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return 0===n.length||1===n.length&&Ye.isText(r)&&""===r.text&&!e.isVoid(t)},isInline:(e,t)=>Te.isElement(t)&&e.isInline(t),isNormalizing(e){var t=ue.get(e);return void 0===t||t},isStart(e,t,n){if(0!==t.offset)return!1;var r=je.start(e,n);return He.equals(t,r)},isVoid:(e,t)=>Te.isElement(t)&&e.isVoid(t),last(e,t){var n=je.path(e,t,{edge:"end"});return je.node(e,n)},leaf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=je.path(e,t,n);return[Ie.leaf(e,r),r]},*levels(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,reverse:r=!1,voids:o=!1}=t,{match:i}=t;if(null==i&&(i=()=>!0),n){var a=[],s=je.path(e,n);for(var[u,l]of Ie.levels(e,s))if(i(u,l)&&(a.push([u,l]),!o&&je.isVoid(e,u)))break;r&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:n}=e;if(!n)return null;if(t)return t;if(We.isExpanded(n)){var[r]=je.nodes(e,{match:Ye.isText});if(r){var[o]=r;return ve(o,["text"])}return{}}var{anchor:i}=n,{path:a}=i,[s]=je.leaf(e,a);if(0===i.offset){var u=je.previous(e,{at:a,match:Ye.isText}),l=je.above(e,{match:t=>je.isBlock(e,t)});if(u&&l){var[c,f]=u,[,d]=l;De.isAncestor(d,f)&&(s=c)}}return ve(s,["text"])},next(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=je.after(e,i,{voids:r});if(a){var[,s]=je.last(e,[]),u=[a.path,s];if(De.isPath(i)&&0===i.length)throw new Error("Cannot get the next node from the root node!");if(null==o)if(De.isPath(i)){var[l]=je.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=je.nodes(e,{at:u,match:o,mode:n,voids:r});return c}}},node(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=je.path(e,t,n);return[Ie.get(e,r),r]},*nodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,mode:r="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:s}=t;if(s||(s=()=>!0),n){var u,l;if(Ne.isSpan(n))u=n[0],l=n[1];else{var c=je.path(e,n,{edge:"start"}),f=je.path(e,n,{edge:"end"});u=i?f:c,l=i?c:f}var d,p=Ie.nodes(e,{reverse:i,from:u,to:l,pass:t=>{var[n]=t;return!a&&je.isVoid(e,n)}}),h=[];for(var[g,v]of p){var y=d&&0===De.compare(v,d[1]);if("highest"!==r||!y)if(s(g,v))if("lowest"===r&&y)d=[g,v];else{var m="lowest"===r?d:[g,v];m&&(o?h.push(m):yield m),d=[g,v]}else if(o&&!y&&Ye.isText(g))return}"lowest"===r&&d&&(o?h.push(d):yield d),o&&(yield*h)}},normalize(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{force:n=!1}=t,r=e=>ae.get(e)||[];if(je.isNormalizing(e)){if(n){var o=Array.from(Ie.nodes(e),(e=>{var[,t]=e;return t}));ae.set(e,o)}0!==r(e).length&&je.withoutNormalizing(e,(()=>{for(var t of r(e))if(Ie.has(e,t)){var[n,o]=je.node(e,t);if(Te.isElement(n)&&0===n.children.length){ct.insertNodes(e,{text:""},{at:t.concat(0),voids:!0})}}for(var i=42*r(e).length,a=0;0!==r(e).length;){if(a>i)throw new Error("\n            Could not completely normalize the editor after ".concat(i," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.\n          "));var s=r(e).pop();if(Ie.has(e,s)){var u=je.node(e,s);e.normalizeNode(u)}a++}}))}},parent(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=je.path(e,t,n),o=De.parent(r);return je.node(e,o)},path(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{depth:r,edge:o}=n;if(De.isPath(t))if("start"===o){var[,i]=Ie.first(e,t);t=i}else if("end"===o){var[,a]=Ie.last(e,t);t=a}return We.isRange(t)&&(t="start"===o?We.start(t):"end"===o?We.end(t):De.common(t.anchor.path,t.focus.path)),He.isPoint(t)&&(t=t.path),null!=r&&(t=t.slice(0,r)),t},hasPath:(e,t)=>Ie.has(e,t),pathRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return je.pathRefs(e).delete(o),o.current=null,t}};return je.pathRefs(e).add(o),o},pathRefs(e){var t=le.get(e);return t||(t=new Set,le.set(e,t)),t},point(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{edge:r="start"}=n;if(De.isPath(t)){var o;if("end"===r){var[,i]=Ie.last(e,t);o=i}else{var[,a]=Ie.first(e,t);o=a}var s=Ie.get(e,o);if(!Ye.isText(s))throw new Error("Cannot get the ".concat(r," point in the node at path [").concat(t,"] because it has no ").concat(r," text node."));return{path:o,offset:"end"===r?s.text.length:0}}if(We.isRange(t)){var[u,l]=We.edges(t);return"start"===r?u:l}return t},pointRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return je.pointRefs(e).delete(o),o.current=null,t}};return je.pointRefs(e).add(o),o},pointRefs(e){var t=ce.get(e);return t||(t=new Set,ce.set(e,t)),t},*positions(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{at:n=e.selection,unit:r="offset",reverse:o=!1,voids:i=!1}=t;if(n){var s=je.range(e,n),[u,l]=We.edges(s),c=o?l:u,f=!1,d="",p=0,h=0,g=0;for(var[v,y]of je.nodes(e,{at:n,reverse:o,voids:i})){if(Te.isElement(v)){if(!i&&e.isVoid(v)){yield je.start(e,y);continue}if(e.isInline(v))continue;if(je.hasInlines(e,v)){var m=De.isAncestor(y,l.path)?l:je.end(e,y),b=De.isAncestor(y,u.path)?u:je.start(e,y);d=je.string(e,{anchor:b,focus:m},{voids:i}),d=o?a.reverse(d):d,f=!0}}if(Ye.isText(v)){var w=De.equals(y,c.path);for(w?(h=o?c.offset:v.text.length-c.offset,g=c.offset):(h=v.text.length,g=o?h:0),(w||f||"offset"===r)&&(yield{path:y,offset:g},f=!1);;){if(0===p){if(""===d)break;p=S(d,r),d=d.slice(p)}if(g=o?g-p:g+p,(h-=p)<0){p=-h;break}p=0,yield{path:y,offset:g}}}}}function S(e,t){return"character"===t?we(e):"word"===t?(e=>{for(var t,n=0,r=0,o=!1;t=e.charAt(r);){var i=we(t);t=e.slice(r,r+i);var a=e.slice(r+i);if(Se(t,a))o=!0,n+=i;else{if(o)break;n+=i}r+=i}return n})(e):"line"===t||"block"===t?e.length:1}},previous(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=je.before(e,i,{voids:r});if(a){var[,s]=je.first(e,[]),u=[a.path,s];if(De.isPath(i)&&0===i.length)throw new Error("Cannot get the previous node from the root node!");if(null==o)if(De.isPath(i)){var[l]=je.parent(e,i);o=e=>l.children.includes(e)}else o=()=>!0;var[c]=je.nodes(e,{reverse:!0,at:u,match:o,mode:n,voids:r});return c}}},range:(e,t,n)=>We.isRange(t)&&!n?t:{anchor:je.start(e,t),focus:je.end(e,n||t)},rangeRef(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:r="forward"}=n,o={current:t,affinity:r,unref(){var{current:t}=o;return je.rangeRefs(e).delete(o),o.current=null,t}};return je.rangeRefs(e).add(o),o},rangeRefs(e){var t=fe.get(e);return t||(t=new Set,fe.set(e,t)),t},removeMark(e,t){e.removeMark(t)},start:(e,t)=>je.point(e,t,{edge:"start"}),string(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,o=je.range(e,t),[i,a]=We.edges(o),s="";for(var[u,l]of je.nodes(e,{at:o,match:Ye.isText,voids:r})){var c=u.text;De.equals(l,a.path)&&(c=c.slice(0,a.offset)),De.equals(l,i.path)&&(c=c.slice(i.offset)),s+=c}return s},unhangRange(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{voids:r=!1}=n,[o,i]=We.edges(t);if(0!==o.offset||0!==i.offset||We.isCollapsed(t))return t;var a=je.above(e,{at:i,match:t=>je.isBlock(e,t)}),s=a?a[1]:[],u={anchor:je.start(e,[]),focus:i},l=!0;for(var[c,f]of je.nodes(e,{at:u,match:Ye.isText,reverse:!0,voids:r}))if(l)l=!1;else if(""!==c.text||De.isBefore(f,s)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return je.above(e,_e(_e({},t),{},{match:t=>je.isVoid(e,t)}))},withoutNormalizing(e,t){var n=je.isNormalizing(e);ue.set(e,!1);try{t()}finally{ue.set(e,n)}je.normalize(e)}},Ce={isLocation:e=>De.isPath(e)||He.isPoint(e)||We.isRange(e)},Ne={isSpan:e=>Array.isArray(e)&&2===e.length&&e.every(De.isPath)},Le=new WeakMap,Ie={ancestor(e,t){var n=Ie.get(e,t);if(Ye.isText(n))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(n));return n},*ancestors(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of De.ancestors(t,n)){var o=[Ie.ancestor(e,r),r];yield o}},child(e,t){if(Ye.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var n=e.children[t];if(null==n)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return n},*children(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{reverse:r=!1}=n,o=Ie.ancestor(e,t),{children:i}=o,a=r?i.length-1:0;r?a>=0:a<i.length;){var s=Ie.child(o,a),u=t.concat(a);yield[s,u],a=r?a-1:a+1}},common(e,t,n){var r=De.common(t,n);return[Ie.get(e,r),r]},descendant(e,t){var n=Ie.get(e,t);if(je.isEditor(n))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(n));return n},*descendants(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Ie.nodes(e,t))0!==r.length&&(yield[n,r])},*elements(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Ie.nodes(e,t))Te.isElement(n)&&(yield[n,r])},extractProps:e=>Te.isAncestor(e)?ve(e,["children"]):ve(e,["text"]),first(e,t){for(var n=t.slice(),r=Ie.get(e,n);r&&!Ye.isText(r)&&0!==r.children.length;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(Ye.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));return te({children:e.children},(e=>{var[n,r]=We.edges(t),o=Ie.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!We.includes(t,n)}});for(var[,i]of o){if(!We.includes(t,i)){var a=Ie.parent(e,i),s=i[i.length-1];a.children.splice(s,1)}if(De.equals(i,r.path)){var u=Ie.leaf(e,i);u.text=u.text.slice(0,r.offset)}if(De.equals(i,n.path)){var l=Ie.leaf(e,i);l.text=l.text.slice(n.offset)}}je.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Ye.isText(n)||!n.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));n=n.children[o]}return n},has(e,t){for(var n=e,r=0;r<t.length;r++){var o=t[r];if(Ye.isText(n)||!n.children[o])return!1;n=n.children[o]}return!0},isNode:e=>Ye.isText(e)||Te.isElement(e)||je.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Le.get(e);if(void 0!==t)return t;var n=e.every((e=>Ie.isNode(e)));return Le.set(e,n),n},last(e,t){for(var n=t.slice(),r=Ie.get(e,n);r&&!Ye.isText(r)&&0!==r.children.length;){var o=r.children.length-1;r=r.children[o],n.push(o)}return[r,n]},leaf(e,t){var n=Ie.get(e,t);if(!Ye.isText(n))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(n));return n},*levels(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};for(var r of De.levels(t,n)){var o=Ie.get(e,r);yield[o,r]}},matches:(e,t)=>Te.isElement(e)&&Te.isElementProps(t)&&Te.matches(e,t)||Ye.isText(e)&&Ye.isTextProps(t)&&Ye.matches(e,t),*nodes(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{pass:n,reverse:r=!1}=t,{from:o=[],to:i}=t,a=new Set,s=[],u=e;!i||!(r?De.isBefore(s,i):De.isAfter(s,i));)if(a.has(u)||(yield[u,s]),a.has(u)||Ye.isText(u)||0===u.children.length||null!=n&&!1!==n([u,s])){if(0===s.length)break;if(!r){var l=De.next(s);if(Ie.has(e,l)){s=l,u=Ie.get(e,s);continue}}if(r&&0!==s[s.length-1])s=De.previous(s),u=Ie.get(e,s);else s=De.parent(s),u=Ie.get(e,s),a.add(u)}else{a.add(u);var c=r?u.children.length-1:0;De.isAncestor(s,o)&&(c=o[s.length]),s=s.concat(c),u=Ie.get(e,s)}},parent(e,t){var n=De.parent(t),r=Ie.get(e,n);if(Ye.isText(r))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return r},string:e=>Ye.isText(e)?e.text:e.children.map(Ie.string).join(""),*texts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var[n,r]of Ie.nodes(e,t))Ye.isText(n)&&(yield[n,r])}};function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fe={isNodeOperation:e=>Fe.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!t(e))return!1;switch(e.type){case"insert_node":return De.isPath(e.path)&&Ie.isNode(e.node);case"insert_text":return"number"==typeof e.offset&&"string"==typeof e.text&&De.isPath(e.path);case"merge_node":return"number"==typeof e.position&&De.isPath(e.path)&&t(e.properties);case"move_node":return De.isPath(e.path)&&De.isPath(e.newPath);case"remove_node":return De.isPath(e.path)&&Ie.isNode(e.node);case"remove_text":return"number"==typeof e.offset&&"string"==typeof e.text&&De.isPath(e.path);case"set_node":return De.isPath(e.path)&&t(e.properties)&&t(e.newProperties);case"set_selection":return null===e.properties&&We.isRange(e.newProperties)||null===e.newProperties&&We.isRange(e.properties)||t(e.properties)&&t(e.newProperties);case"split_node":return De.isPath(e.path)&&"number"==typeof e.position&&t(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Fe.isOperation(e))),isSelectionOperation:e=>Fe.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Fe.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Me(Me({},e),{},{type:"remove_node"});case"insert_text":return Me(Me({},e),{},{type:"remove_text"});case"merge_node":return Me(Me({},e),{},{type:"split_node",path:De.previous(e.path)});case"move_node":var{newPath:t,path:n}=e;if(De.equals(t,n))return e;if(De.isSibling(n,t))return Me(Me({},e),{},{path:t,newPath:n});var r=De.transform(n,e),o=De.transform(De.next(n),e);return Me(Me({},e),{},{path:r,newPath:o});case"remove_node":return Me(Me({},e),{},{type:"insert_node"});case"remove_text":return Me(Me({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Me(Me({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:s,newProperties:u}=e;return Me(Me({},e),{},null==s?{properties:u,newProperties:null}:null==u?{properties:null,newProperties:s}:{properties:u,newProperties:s});case"split_node":return Me(Me({},e),{},{type:"merge_node",path:De.next(e.path)})}}},De={ancestors(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=De.levels(e,t);return r=n?r.slice(1):r.slice(0,-1)},common(e,t){for(var n=[],r=0;r<e.length&&r<t.length;r++){var o=e[r];if(o!==t[r])break;n.push(o)}return n},compare(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){if(e[r]<t[r])return-1;if(e[r]>t[r])return 1}return 0},endsAfter(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return De.equals(r,o)&&i>a},endsAt(e,t){var n=e.length,r=e.slice(0,n),o=t.slice(0,n);return De.equals(r,o)},endsBefore(e,t){var n=e.length-1,r=e.slice(0,n),o=t.slice(0,n),i=e[n],a=t[n];return De.equals(r,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every(((e,n)=>e===t[n])),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>1===De.compare(e,t),isAncestor:(e,t)=>e.length<t.length&&0===De.compare(e,t),isBefore:(e,t)=>-1===De.compare(e,t),isChild:(e,t)=>e.length===t.length+1&&0===De.compare(e,t),isCommon:(e,t)=>e.length<=t.length&&0===De.compare(e,t),isDescendant:(e,t)=>e.length>t.length&&0===De.compare(e,t),isParent:(e,t)=>e.length+1===t.length&&0===De.compare(e,t),isPath:e=>Array.isArray(e)&&(0===e.length||"number"==typeof e[0]),isSibling(e,t){if(e.length!==t.length)return!1;var n=e.slice(0,-1),r=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&De.equals(n,r)},levels(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,r=[],o=0;o<=e.length;o++)r.push(e.slice(0,o));return n&&r.reverse(),r},next(e){if(0===e.length)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(0===e.length)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(0===e.length)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!De.isAncestor(t,e)&&!De.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return te(e,(r=>{var{affinity:o="forward"}=n;if(0!==e.length)switch(t.type){case"insert_node":var{path:i}=t;(De.equals(i,r)||De.endsBefore(i,r)||De.isAncestor(i,r))&&(r[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(De.equals(a,r)||De.isAncestor(a,r))return null;De.endsBefore(a,r)&&(r[a.length-1]-=1);break;case"merge_node":var{path:s,position:u}=t;De.equals(s,r)||De.endsBefore(s,r)?r[s.length-1]-=1:De.isAncestor(s,r)&&(r[s.length-1]-=1,r[s.length]+=u);break;case"split_node":var{path:l,position:c}=t;if(De.equals(l,r)){if("forward"===o)r[r.length-1]+=1;else if("backward"!==o)return null}else De.endsBefore(l,r)?r[l.length-1]+=1:De.isAncestor(l,r)&&e[l.length]>=c&&(r[l.length-1]+=1,r[l.length]-=c);break;case"move_node":var{path:f,newPath:d}=t;if(De.equals(f,d))return;if(De.isAncestor(f,r)||De.equals(f,r)){var p=d.slice();return De.endsBefore(f,d)&&f.length<d.length&&(p[f.length-1]-=1),p.concat(r.slice(f.length))}De.isSibling(f,d)&&(De.isAncestor(d,r)||De.equals(d,r))?De.endsBefore(f,r)?r[f.length-1]-=1:r[f.length-1]+=1:De.endsBefore(d,r)||De.equals(d,r)||De.isAncestor(d,r)?(De.endsBefore(f,r)&&(r[f.length-1]-=1),r[d.length-1]+=1):De.endsBefore(f,r)&&(De.equals(d,r)&&(r[d.length-1]+=1),r[f.length-1]-=1)}}))}},ze={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=De.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var He={compare(e,t){var n=De.compare(e.path,t.path);return 0===n?e.offset<t.offset?-1:e.offset>t.offset?1:0:n},isAfter:(e,t)=>1===He.compare(e,t),isBefore:(e,t)=>-1===He.compare(e,t),equals:(e,t)=>e.offset===t.offset&&De.equals(e.path,t.path),isPoint:e=>t(e)&&"number"==typeof e.offset&&De.isPath(e.path),transform(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return te(e,(e=>{var{affinity:r="forward"}=n,{path:o,offset:i}=e;switch(t.type){case"insert_node":case"move_node":e.path=De.transform(o,t,n);break;case"insert_text":De.equals(t.path,o)&&t.offset<=i&&(e.offset+=t.text.length);break;case"merge_node":De.equals(t.path,o)&&(e.offset+=t.position),e.path=De.transform(o,t,n);break;case"remove_text":De.equals(t.path,o)&&t.offset<=i&&(e.offset-=Math.min(i-t.offset,t.text.length));break;case"remove_node":if(De.equals(t.path,o)||De.isAncestor(t.path,o))return null;e.path=De.transform(o,t,n);break;case"split_node":if(De.equals(t.path,o)){if(t.position===i&&null==r)return null;(t.position<i||t.position===i&&"forward"===r)&&(e.offset-=t.position,e.path=De.transform(o,t,Ue(Ue({},n),{},{affinity:"forward"})))}else e.path=De.transform(o,t,n)}}))}},Ve={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=He.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var We={edges(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{reverse:n=!1}=t,{anchor:r,focus:o}=e;return We.isBackward(e)===n?[r,o]:[o,r]},end(e){var[,t]=We.edges(e);return t},equals:(e,t)=>He.equals(e.anchor,t.anchor)&&He.equals(e.focus,t.focus),includes(e,t){if(We.isRange(t)){if(We.includes(e,t.anchor)||We.includes(e,t.focus))return!0;var[n,r]=We.edges(e),[o,i]=We.edges(t);return He.isBefore(n,o)&&He.isAfter(r,i)}var[a,s]=We.edges(e),u=!1,l=!1;return He.isPoint(t)?(u=He.compare(t,a)>=0,l=He.compare(t,s)<=0):(u=De.compare(t,a.path)>=0,l=De.compare(t,s.path)<=0),u&&l},intersection(e,t){var n=ve(e,["anchor","focus"]),[r,o]=We.edges(e),[i,a]=We.edges(t),s=He.isBefore(r,i)?i:r,u=He.isBefore(o,a)?o:a;return He.isBefore(u,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({anchor:s,focus:u},n)},isBackward(e){var{anchor:t,focus:n}=e;return He.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return He.equals(t,n)},isExpanded:e=>!We.isCollapsed(e),isForward:e=>!We.isBackward(e),isRange:e=>t(e)&&He.isPoint(e.anchor)&&He.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=We.edges(e);return t},transform(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{affinity:i="inward"}=o;return"inward"===i?We.isForward(e)?(n="forward",r="backward"):(n="backward",r="forward"):"outward"===i?We.isForward(e)?(n="backward",r="forward"):(n="forward",r="backward"):(n=i,r=i),te(e,(e=>{var o=He.transform(e.anchor,t,{affinity:n}),i=He.transform(e.focus,t,{affinity:r});if(!o||!i)return null;e.anchor=o,e.focus=i}))}},qe={transform(e,t){var{current:n,affinity:r}=e;if(null!=n){var o=We.transform(n,t,{affinity:r});e.current=o,null==o&&e.unref()}}};function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ye={equals(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{loose:r=!1}=n;function o(e){return ve(e,["text"])}return oe(r?o(e):e,r?o(t):t)},isText:e=>t(e)&&"string"==typeof e.text,isTextList:e=>Array.isArray(e)&&e.every((e=>Ye.isText(e))),isTextProps:e=>void 0!==e.text,matches(e,t){for(var n in t)if("text"!==n&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;return!0},decorations(e,t){var n=[Ke({},e)];for(var r of t){var o=ve(r,["anchor","focus"]),[i,a]=We.edges(r),s=[],u=0;for(var l of n){var{length:c}=l.text,f=u;if(u+=c,i.offset<=f&&a.offset>=u)Object.assign(l,o),s.push(l);else if(i.offset!==a.offset&&(i.offset===u||a.offset===f)||i.offset>u||a.offset<f||a.offset===f&&0!==f)s.push(l);else{var d=l,p=void 0,h=void 0;if(a.offset<u){var g=a.offset-f;h=Ke(Ke({},d),{},{text:d.text.slice(g)}),d=Ke(Ke({},d),{},{text:d.text.slice(0,g)})}if(i.offset>f){var v=i.offset-f;p=Ke(Ke({},d),{},{text:d.text.slice(0,v)}),d=Ke(Ke({},d),{},{text:d.text.slice(v)})}Object.assign(d,o),p&&s.push(p),s.push(d),h&&s.push(h)}}n=s}return n}};function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var et={insertNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};je.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1,mode:i="lowest"}=n,{at:a,match:s,select:u}=n;if(Ie.isNode(t)&&(t=[t]),0!==t.length){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?je.end(e,[]):[0],u=!0),null==u&&(u=!1),We.isRange(a))if(r||(a=je.unhangRange(e,a)),We.isCollapsed(a))a=a.anchor;else{var[,c]=We.edges(a),f=je.pointRef(e,c);ct.delete(e,{at:a}),a=f.unref()}if(He.isPoint(a)){null==s&&(s=Ye.isText(l)?e=>Ye.isText(e):e.isInline(l)?t=>Ye.isText(t)||je.isInline(e,t):t=>je.isBlock(e,t));var[d]=je.nodes(e,{at:a.path,match:s,mode:i,voids:o});if(!d)return;var[,p]=d,h=je.pathRef(e,p),g=je.isEnd(e,a,p);ct.splitNodes(e,{at:a,match:s,mode:i,voids:o});var v=h.unref();a=g?De.next(v):v}var y=De.parent(a),m=a[a.length-1];if(o||!je.void(e,{at:y})){for(var b of t){var w=y.concat(m);m++,e.apply({type:"insert_node",path:w,node:b})}if(u){var S=je.end(e,a);S&&ct.select(e,S)}}}}))},liftNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};je.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r="lowest",voids:o=!1}=t,{match:i}=t;if(null==i&&(i=De.isPath(n)?rt(e,n):t=>je.isBlock(e,t)),n){var a=je.nodes(e,{at:n,match:i,mode:r,voids:o}),s=Array.from(a,(t=>{var[,n]=t;return je.pathRef(e,n)}));for(var u of s){var l=u.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=je.node(e,De.parent(l)),[f,d]=c,p=l[l.length-1],{length:h}=f.children;if(1===h){var g=De.next(d);ct.moveNodes(e,{at:l,to:g,voids:o}),ct.removeNodes(e,{at:d,voids:o})}else if(0===p)ct.moveNodes(e,{at:l,to:d,voids:o});else if(p===h-1){var v=De.next(d);ct.moveNodes(e,{at:l,to:v,voids:o})}else{var y=De.next(l),m=De.next(d);ct.splitNodes(e,{at:y,voids:o}),ct.moveNodes(e,{at:l,to:m,voids:o})}}}}))},mergeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};je.withoutNormalizing(e,(()=>{var{match:n,at:r=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(r){if(null==n)if(De.isPath(r)){var[s]=je.parent(e,r);n=e=>s.children.includes(e)}else n=t=>je.isBlock(e,t);if(!o&&We.isRange(r)&&(r=je.unhangRange(e,r)),We.isRange(r))if(We.isCollapsed(r))r=r.anchor;else{var[,u]=We.edges(r),l=je.pointRef(e,u);ct.delete(e,{at:r}),r=l.unref(),null==t.at&&ct.select(e,r)}var[c]=je.nodes(e,{at:r,match:n,voids:i,mode:a}),f=je.previous(e,{at:r,match:n,voids:i,mode:a});if(c&&f){var[d,p]=c,[h,g]=f;if(0!==p.length&&0!==g.length){var v,y,m=De.next(g),b=De.common(p,g),w=De.isSibling(p,g),S=Array.from(je.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(b.length).slice(0,-1),x=je.above(e,{at:p,mode:"highest",match:t=>S.includes(t)&&tt(e,t)}),E=x&&je.pathRef(e,x[1]);if(Ye.isText(d)&&Ye.isText(h)){var O=ve(d,["text"]);y=h.text.length,v=O}else{if(!Te.isElement(d)||!Te.isElement(h))throw new Error("Cannot merge the node at path [".concat(p,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(d)," ").concat(JSON.stringify(h)));O=ve(d,["children"]);y=h.children.length,v=O}w||ct.moveNodes(e,{at:p,to:m,voids:i}),E&&ct.removeNodes(e,{at:E.current,voids:i}),Te.isElement(h)&&je.isEmpty(e,h)||Ye.isText(h)&&""===h.text?ct.removeNodes(e,{at:g,voids:i}):e.apply({type:"merge_node",path:m,position:y,properties:v}),E&&E.unref()}}}}))},moveNodes(e,t){je.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(r){null==a&&(a=De.isPath(r)?rt(e,r):t=>je.isBlock(e,t));var s=je.pathRef(e,n),u=je.nodes(e,{at:r,match:a,mode:o,voids:i}),l=Array.from(u,(t=>{var[,n]=t;return je.pathRef(e,n)}));for(var c of l){var f=c.unref(),d=s.current;0!==f.length&&e.apply({type:"move_node",path:f,newPath:d}),s.current&&De.isSibling(d,f)&&De.isAfter(d,f)&&(s.current=De.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};je.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=De.isPath(i)?rt(e,i):t=>je.isBlock(e,t)),!n&&We.isRange(i)&&(i=je.unhangRange(e,i));var s=je.nodes(e,{at:i,match:a,mode:o,voids:r}),u=Array.from(s,(t=>{var[,n]=t;return je.pathRef(e,n)}));for(var l of u){var c=l.unref();if(c){var[f]=je.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}}))},setNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};je.withoutNormalizing(e,(()=>{var{match:r,at:o=e.selection}=n,{hanging:i=!1,mode:a="lowest",split:s=!1,voids:u=!1}=n;if(o){if(null==r&&(r=De.isPath(o)?rt(e,o):t=>je.isBlock(e,t)),!i&&We.isRange(o)&&(o=je.unhangRange(e,o)),s&&We.isRange(o)){var l=je.rangeRef(e,o,{affinity:"inward"}),[c,f]=We.edges(o),d="lowest"===a?"lowest":"highest",p=je.isEnd(e,f,f.path);ct.splitNodes(e,{at:f,match:r,mode:d,voids:u,always:!p});var h=je.isStart(e,c,c.path);ct.splitNodes(e,{at:c,match:r,mode:d,voids:u,always:!h}),o=l.unref(),null==n.at&&ct.select(e,o)}for(var[g,v]of je.nodes(e,{at:o,match:r,mode:a,voids:u})){var y={},m={};if(0!==v.length){for(var b in t)"children"!==b&&"text"!==b&&t[b]!==g[b]&&(g.hasOwnProperty(b)&&(y[b]=g[b]),m[b]=t[b]);0!==Object.keys(m).length&&e.apply({type:"set_node",path:v,properties:y,newProperties:m})}}}}))},splitNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};je.withoutNormalizing(e,(()=>{var{mode:n="lowest",voids:r=!1}=t,{match:o,at:i=e.selection,height:a=0,always:s=!1}=t;if(null==o&&(o=t=>je.isBlock(e,t)),We.isRange(i)&&(i=nt(e,i)),De.isPath(i)){var u=i,l=je.point(e,u),[c]=je.parent(e,u);o=e=>e===c,a=l.path.length-u.length+1,i=l,s=!0}if(i){var f=je.pointRef(e,i,{affinity:"backward"}),[d]=je.nodes(e,{at:i,match:o,mode:n,voids:r});if(d){var p=je.void(e,{at:i,mode:"highest"});if(!r&&p){var[h,g]=p;if(Te.isElement(h)&&e.isInline(h)){var v=je.after(e,g);if(!v){var y=De.next(g);ct.insertNodes(e,{text:""},{at:y,voids:r}),v=je.point(e,y)}i=v,s=!0}a=i.path.length-g.length+1,s=!0}var m=je.pointRef(e,i),b=i.path.length-a,[,w]=d,S=i.path.slice(0,b),x=0===a?i.offset:i.path[b]+0;for(var[E,O]of je.levels(e,{at:S,reverse:!0,voids:r})){var k=!1;if(O.length<w.length||0===O.length||!r&&je.isVoid(e,E))break;var T=f.current,A=je.isEnd(e,T,O);if(s||!f||!je.isEdge(e,T,O)){k=!0;var _=Ie.extractProps(E);e.apply({type:"split_node",path:O,position:x,properties:_})}x=O[O.length-1]+(k||A?1:0)}if(null==t.at){var P=m.current||je.end(e,[]);ct.select(e,P)}f.unref(),m.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var o of t)r[o]=null;ct.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};je.withoutNormalizing(e,(()=>{var{mode:n="lowest",split:r=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){null==a&&(a=De.isPath(i)?rt(e,i):t=>je.isBlock(e,t)),De.isPath(i)&&(i=je.range(e,i));var s=We.isRange(i)?je.rangeRef(e,i):null,u=je.nodes(e,{at:i,match:a,mode:n,voids:o}),l=Array.from(u,(t=>{var[,n]=t;return je.pathRef(e,n)})),c=function(t){var n=t.unref(),[i]=je.node(e,n),a=je.range(e,n);r&&s&&(a=We.intersection(s.current,a)),ct.liftNodes(e,{at:a,match:e=>Te.isAncestor(i)&&i.children.includes(e),voids:o})};for(var f of l)c(f);s&&s.unref()}}))},wrapNodes(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};je.withoutNormalizing(e,(()=>{var{mode:r="lowest",split:o=!1,voids:i=!1}=n,{match:a,at:s=e.selection}=n;if(s){if(null==a&&(a=De.isPath(s)?rt(e,s):e.isInline(t)?t=>je.isInline(e,t)||Ye.isText(t):t=>je.isBlock(e,t)),o&&We.isRange(s)){var[u,l]=We.edges(s),c=je.rangeRef(e,s,{affinity:"inward"});ct.splitNodes(e,{at:l,match:a,voids:i}),ct.splitNodes(e,{at:u,match:a,voids:i}),s=c.unref(),null==n.at&&ct.select(e,s)}var f=Array.from(je.nodes(e,{at:s,match:e.isInline(t)?t=>je.isBlock(e,t):e=>je.isEditor(e),mode:"lowest",voids:i}));for(var[,d]of f){var p=We.isRange(s)?We.intersection(s,je.range(e,d)):s;if(p){var h=Array.from(je.nodes(e,{at:p,match:a,mode:r,voids:i}));h.length>0&&function(){var[n]=h,r=h[h.length-1],[,o]=n,[,a]=r,s=De.equals(o,a)?De.parent(o):De.common(o,a),u=je.range(e,o,a),l=je.node(e,s),[c]=l,f=s.length+1,d=De.next(a.slice(0,f)),p=Qe(Qe({},t),{},{children:[]});ct.insertNodes(e,p,{at:d,voids:i}),ct.moveNodes(e,{at:u,match:e=>Te.isAncestor(c)&&c.children.includes(e),to:d.concat(0),voids:i})}()}}}}))}},tt=(e,t)=>{if(Te.isElement(t)){var n=t;return!!je.isVoid(e,t)||1===n.children.length&&tt(e,n.children[0])}return!je.isEditor(t)},nt=(e,t)=>{if(We.isCollapsed(t))return t.anchor;var[,n]=We.edges(t),r=je.pointRef(e,n);return ct.delete(e,{at:t}),r.unref()},rt=(e,t)=>{var[n]=je.node(e,t);return e=>e===n};function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var at={collapse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{edge:n="anchor"}=t,{selection:r}=e;if(r)if("anchor"===n)ct.select(e,r.anchor);else if("focus"===n)ct.select(e,r.focus);else if("start"===n){var[o]=We.edges(r);ct.select(e,o)}else if("end"===n){var[,i]=We.edges(r);ct.select(e,i)}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{selection:n}=e,{distance:r=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(n){"start"===a&&(a=We.isBackward(n)?"focus":"anchor"),"end"===a&&(a=We.isBackward(n)?"anchor":"focus");var{anchor:s,focus:u}=n,l={distance:r,unit:o},c={};if(null==a||"anchor"===a){var f=i?je.before(e,s,l):je.after(e,s,l);f&&(c.anchor=f)}if(null==a||"focus"===a){var d=i?je.before(e,u,l):je.after(e,u,l);d&&(c.focus=d)}ct.setSelection(e,c)}},select(e,t){var{selection:n}=e;if(t=je.range(e,t),n)ct.setSelection(e,t);else{if(!We.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:n,newProperties:t})}},setPoint(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{selection:r}=e,{edge:o="both"}=n;if(r){"start"===o&&(o=We.isBackward(r)?"focus":"anchor"),"end"===o&&(o=We.isBackward(r)?"anchor":"focus");var{anchor:i,focus:a}=r,s="anchor"===o?i:a;ct.setSelection(e,{["anchor"===o?"anchor":"focus"]:it(it({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},o={};if(n){for(var i in t)("anchor"===i&&null!=t.anchor&&!He.equals(t.anchor,n.anchor)||"focus"===i&&null!=t.focus&&!He.equals(t.focus,n.focus)||"anchor"!==i&&"focus"!==i&&t[i]!==n[i])&&(r[i]=n[i],o[i]=t[i]);Object.keys(r).length>0&&e.apply({type:"set_selection",properties:r,newProperties:o})}}},st={delete(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};je.withoutNormalizing(e,(()=>{var{reverse:n=!1,unit:r="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:s=!1}=t;if(a){if(We.isRange(a)&&We.isCollapsed(a)&&(a=a.anchor),He.isPoint(a)){var u=je.void(e,{at:a,mode:"highest"});if(!i&&u){var[,l]=u;a=l}else{var c={unit:r,distance:o};a={anchor:a,focus:n?je.before(e,a,c)||je.start(e,[]):je.after(e,a,c)||je.end(e,[])},s=!0}}if(De.isPath(a))ct.removeNodes(e,{at:a,voids:i});else if(!We.isCollapsed(a)){if(!s){var[,f]=We.edges(a),d=je.end(e,[]);He.equals(f,d)||(a=je.unhangRange(e,a,{voids:i}))}var[p,h]=We.edges(a),g=je.above(e,{match:t=>je.isBlock(e,t),at:p,voids:i}),v=je.above(e,{match:t=>je.isBlock(e,t),at:h,voids:i}),y=g&&v&&!De.equals(g[1],v[1]),m=De.equals(p.path,h.path),b=i?null:je.void(e,{at:p,mode:"highest"}),w=i?null:je.void(e,{at:h,mode:"highest"});if(b){var S=je.before(e,p);S&&g&&De.isAncestor(g[1],S.path)&&(p=S)}if(w){var x=je.after(e,h);x&&v&&De.isAncestor(v[1],x.path)&&(h=x)}var E,O=[];for(var k of je.nodes(e,{at:a,voids:i})){var[T,A]=k;E&&0===De.compare(A,E)||(!i&&je.isVoid(e,T)||!De.isCommon(A,p.path)&&!De.isCommon(A,h.path))&&(O.push(k),E=A)}var _=Array.from(O,(t=>{var[,n]=t;return je.pathRef(e,n)})),P=je.pointRef(e,p),j=je.pointRef(e,h);if(!m&&!b){var C=P.current,[N]=je.leaf(e,C),{path:L}=C,{offset:I}=p,R=N.text.slice(I);R.length>0&&e.apply({type:"remove_text",path:L,offset:I,text:R})}for(var M of _){var F=M.unref();ct.removeNodes(e,{at:F,voids:i})}if(!w){var D=j.current,[z]=je.leaf(e,D),{path:B}=D,U=m?p.offset:0,H=z.text.slice(U,h.offset);H.length>0&&e.apply({type:"remove_text",path:B,offset:U,text:H})}!m&&y&&j.current&&P.current&&ct.mergeNodes(e,{at:j.current,hanging:!0,voids:i});var V=n?P.unref()||j.unref():j.unref()||P.unref();null==t.at&&V&&ct.select(e,V)}}}))},insertFragment(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};je.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:o=!1}=n,{at:i=e.selection}=n;if(t.length&&i){if(We.isRange(i))if(r||(i=je.unhangRange(e,i)),We.isCollapsed(i))i=i.anchor;else{var[,a]=We.edges(i);if(!o&&je.void(e,{at:a}))return;var s=je.pointRef(e,a);ct.delete(e,{at:i}),i=s.unref()}else De.isPath(i)&&(i=je.start(e,i));if(o||!je.void(e,{at:i})){var u=je.above(e,{at:i,match:t=>je.isInline(e,t),mode:"highest",voids:o});if(u){var[,l]=u;if(je.isEnd(e,i,l))i=je.after(e,l);else if(je.isStart(e,i,l)){i=je.before(e,l)}}var c=je.above(e,{match:t=>je.isBlock(e,t),at:i,voids:o}),[,f]=c,d=je.isStart(e,i,f),p=je.isEnd(e,i,f),h=!d||d&&p,g=!p,[,v]=Ie.first({children:t},[]),[,y]=Ie.last({children:t},[]),m=[],b=t=>{var[n,r]=t;return!(h&&De.isAncestor(r,v)&&Te.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(g&&De.isAncestor(r,y)&&Te.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))};for(var w of Ie.nodes({children:t},{pass:b}))w[1].length>0&&b(w)&&m.push(w);var S=[],x=[],E=[],O=!0,k=!1;for(var[T]of m)Te.isElement(T)&&!e.isInline(T)?(O=!1,k=!0,x.push(T)):O?S.push(T):E.push(T);var[A]=je.nodes(e,{at:i,match:t=>Ye.isText(t)||je.isInline(e,t),mode:"highest",voids:o}),[,_]=A,P=je.isStart(e,i,_),j=je.isEnd(e,i,_),C=je.pathRef(e,p?De.next(f):f),N=je.pathRef(e,j?De.next(_):_);ct.splitNodes(e,{at:i,match:t=>k?je.isBlock(e,t):Ye.isText(t)||je.isInline(e,t),mode:k?"lowest":"highest",voids:o});var L=je.pathRef(e,!P||P&&j?De.next(_):_);if(ct.insertNodes(e,S,{at:L.current,match:t=>Ye.isText(t)||je.isInline(e,t),mode:"highest",voids:o}),ct.insertNodes(e,x,{at:C.current,match:t=>je.isBlock(e,t),mode:"lowest",voids:o}),ct.insertNodes(e,E,{at:N.current,match:t=>Ye.isText(t)||je.isInline(e,t),mode:"highest",voids:o}),!n.at){var I;I=E.length>0?De.previous(N.current):x.length>0?De.previous(C.current):De.previous(L.current);var R=je.end(e,I);ct.select(e,R)}L.unref(),C.unref(),N.unref()}}}))},insertText(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};je.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:o=e.selection}=n;if(o){if(De.isPath(o)&&(o=je.range(e,o)),We.isRange(o))if(We.isCollapsed(o))o=o.anchor;else{var i=We.end(o);if(!r&&je.void(e,{at:i}))return;var a=je.pointRef(e,i);ct.delete(e,{at:o,voids:r}),o=a.unref(),ct.setSelection(e,{anchor:o,focus:o})}if(r||!je.void(e,{at:o})){var{path:s,offset:u}=o;t.length>0&&e.apply({type:"insert_text",path:s,offset:u,text:t})}}}))}};function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ct=lt(lt(lt(lt({},{transform(e,t){e.children=ne(e.children);var n=e.selection&&ne(e.selection);try{n=((e,t,n)=>{switch(n.type){case"insert_node":var{path:r,node:o}=n,i=Ie.parent(e,r),a=r[r.length-1];if(a>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(r,"] because the destination is past the end of the node."));if(i.children.splice(a,0,o),t)for(var[s,u]of We.points(t))t[u]=He.transform(s,n);break;case"insert_text":var{path:l,offset:c,text:f}=n;if(0===f.length)break;var d=Ie.leaf(e,l),p=d.text.slice(0,c),h=d.text.slice(c);if(d.text=p+f+h,t)for(var[g,v]of We.points(t))t[v]=He.transform(g,n);break;case"merge_node":var{path:y}=n,m=Ie.get(e,y),b=De.previous(y),w=Ie.get(e,b),S=Ie.parent(e,y),x=y[y.length-1];if(Ye.isText(m)&&Ye.isText(w))w.text+=m.text;else{if(Ye.isText(m)||Ye.isText(w))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(m," ").concat(w));w.children.push(...m.children)}if(S.children.splice(x,1),t)for(var[E,O]of We.points(t))t[O]=He.transform(E,n);break;case"move_node":var{path:k,newPath:T}=n;if(De.isAncestor(k,T))throw new Error("Cannot move a path [".concat(k,"] to new path [").concat(T,"] because the destination is inside itself."));var A=Ie.get(e,k),_=Ie.parent(e,k),P=k[k.length-1];_.children.splice(P,1);var j=De.transform(k,n),C=Ie.get(e,De.parent(j)),N=j[j.length-1];if(C.children.splice(N,0,A),t)for(var[L,I]of We.points(t))t[I]=He.transform(L,n);break;case"remove_node":var{path:R}=n,M=R[R.length-1];if(Ie.parent(e,R).children.splice(M,1),t)for(var[F,D]of We.points(t)){var z=He.transform(F,n);if(null!=t&&null!=z)t[D]=z;else{var B=void 0,U=void 0;for(var[H,V]of Ie.texts(e)){if(-1!==De.compare(V,R)){U=[H,V];break}B=[H,V]}B?(F.path=B[1],F.offset=B[0].text.length):U?(F.path=U[1],F.offset=0):t=null}}break;case"remove_text":var{path:$,offset:W,text:q}=n;if(0===q.length)break;var G=Ie.leaf(e,$),K=G.text.slice(0,W),Y=G.text.slice(W+q.length);if(G.text=K+Y,t)for(var[X,Z]of We.points(t))t[Z]=He.transform(X,n);break;case"set_node":var{path:J,properties:Q,newProperties:ee}=n;if(0===J.length)throw new Error("Cannot set properties on the root node!");var te=Ie.get(e,J);for(var ne in ee){if("children"===ne||"text"===ne)throw new Error('Cannot set the "'.concat(ne,'" property of nodes!'));var re=ee[ne];null==re?delete te[ne]:te[ne]=re}for(var oe in Q)ee.hasOwnProperty(oe)||delete te[oe];break;case"set_selection":var{newProperties:ie}=n;if(null==ie)t=ie;else{if(null==t){if(!We.isRange(ie))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(ie)," when there is no current selection."));t=Ze({},ie)}for(var ae in ie){var se=ie[ae];if(null==se){if("anchor"===ae||"focus"===ae)throw new Error('Cannot remove the "'.concat(ae,'" selection property'));delete t[ae]}else t[ae]=se}}break;case"split_node":var{path:ue,position:le,properties:ce}=n;if(0===ue.length)throw new Error('Cannot apply a "split_node" operation at path ['.concat(ue,"] because the root node cannot be split."));var fe,de=Ie.get(e,ue),pe=Ie.parent(e,ue),he=ue[ue.length-1];if(Ye.isText(de)){var ge=de.text.slice(0,le),ve=de.text.slice(le);de.text=ge,fe=Ze(Ze({},ce),{},{text:ve})}else{var ye=de.children.slice(0,le),me=de.children.slice(le);de.children=ye,fe=Ze(Ze({},ce),{},{children:me})}if(pe.children.splice(he+1,0,fe),t)for(var[be,we]of We.points(t))t[we]=He.transform(be,n)}return t})(e,n,t)}finally{e.children=re(e.children),e.selection=n?u(n)?re(n):n:null}}}),et),at),st),ft=i((function(e,t){var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",s="[object Boolean]",u="[object Date]",l="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",v="[object Set]",y="[object String]",m="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",x=/^\[object .+?Constructor\]$/,E=/^(?:0|[1-9]\d*)$/,O={};O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O[i]=O[a]=O[w]=O[s]=O[S]=O[u]=O[l]=O[c]=O[f]=O[d]=O[p]=O[g]=O[v]=O[y]=O[b]=!1;var k="object"==typeof n&&n&&n.Object===Object&&n,T="object"==typeof self&&self&&self.Object===Object&&self,A=k||T||Function("return this")(),_=t&&!t.nodeType&&t,P=_&&e&&!e.nodeType&&e,j=P&&P.exports===_,C=j&&k.process,N=function(){try{return C&&C.binding&&C.binding("util")}catch(e){}}(),L=N&&N.isTypedArray;function I(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function R(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function M(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var F,D,z=Array.prototype,B=Function.prototype,U=Object.prototype,H=A["__core-js_shared__"],V=B.toString,$=U.hasOwnProperty,W=function(){var e=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),q=U.toString,G=RegExp("^"+V.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=j?A.Buffer:void 0,Y=A.Symbol,X=A.Uint8Array,Z=U.propertyIsEnumerable,J=z.splice,Q=Y?Y.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=K?K.isBuffer:void 0,ne=(F=Object.keys,D=Object,function(e){return F(D(e))}),re=Ce(A,"DataView"),oe=Ce(A,"Map"),ie=Ce(A,"Promise"),ae=Ce(A,"Set"),se=Ce(A,"WeakMap"),ue=Ce(Object,"create"),le=Re(re),ce=Re(oe),fe=Re(ie),de=Re(ae),pe=Re(se),he=Y?Y.prototype:void 0,ge=he?he.valueOf:void 0;function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function me(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new me;++t<n;)this.add(e[t])}function we(e){var t=this.__data__=new ye(e);this.size=t.size}function Se(e,t){var n=De(e),r=!n&&Fe(e),o=!n&&!r&&ze(e),i=!n&&!r&&!o&&$e(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var l in e)!t&&!$.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ie(l,u))||s.push(l);return s}function xe(e,t){for(var n=e.length;n--;)if(Me(e[n][0],t))return n;return-1}function Ee(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Q&&Q in Object(e)?function(e){var t=$.call(e,Q),n=e[Q];try{e[Q]=void 0;var r=!0}catch(e){}var o=q.call(e);r&&(t?e[Q]=n:delete e[Q]);return o}(e):function(e){return q.call(e)}(e)}function Oe(e){return Ve(e)&&Ee(e)==i}function ke(e,t,n,r,o){return e===t||(null==e||null==t||!Ve(e)&&!Ve(t)?e!=e&&t!=t:function(e,t,n,r,o,c){var h=De(e),b=De(t),x=h?a:Le(e),E=b?a:Le(t),O=(x=x==i?p:x)==p,k=(E=E==i?p:E)==p,T=x==E;if(T&&ze(e)){if(!ze(t))return!1;h=!0,O=!1}if(T&&!O)return c||(c=new we),h||$e(e)?_e(e,t,n,r,o,c):function(e,t,n,r,o,i,a){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!i(new X(e),new X(t)));case s:case u:case d:return Me(+e,+t);case l:return e.name==t.name&&e.message==t.message;case g:case y:return e==t+"";case f:var c=R;case v:var p=1&r;if(c||(c=M),e.size!=t.size&&!p)return!1;var h=a.get(e);if(h)return h==t;r|=2,a.set(e,t);var b=_e(c(e),c(t),r,o,i,a);return a.delete(e),b;case m:if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,x,n,r,o,c);if(!(1&n)){var A=O&&$.call(e,"__wrapped__"),_=k&&$.call(t,"__wrapped__");if(A||_){var P=A?e.value():e,j=_?t.value():t;return c||(c=new we),o(P,j,n,r,c)}}if(!T)return!1;return c||(c=new we),function(e,t,n,r,o,i){var a=1&n,s=Pe(e),u=s.length,l=Pe(t).length;if(u!=l&&!a)return!1;var c=u;for(;c--;){var f=s[c];if(!(a?f in t:$.call(t,f)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);var h=a;for(;++c<u;){var g=e[f=s[c]],v=t[f];if(r)var y=a?r(v,g,f,t,e,i):r(g,v,f,e,t,i);if(!(void 0===y?g===v||o(g,v,n,r,i):y)){p=!1;break}h||(h="constructor"==f)}if(p&&!h){var m=e.constructor,b=t.constructor;m==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,c)}(e,t,n,r,ke,o))}function Te(e){return!(!He(e)||function(e){return!!W&&W in e}(e))&&(Be(e)?G:x).test(Re(e))}function Ae(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||U,t!==r)return ne(e);var t,n,r,o=[];for(var i in Object(e))$.call(e,i)&&"constructor"!=i&&o.push(i);return o}function _e(e,t,n,r,o,i){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=i.get(e);if(l&&i.get(t))return l==t;var c=-1,f=!0,d=2&n?new be:void 0;for(i.set(e,t),i.set(t,e);++c<s;){var p=e[c],h=t[c];if(r)var g=a?r(h,p,c,t,e,i):r(p,h,c,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(d){if(!I(t,(function(e,t){if(a=t,!d.has(a)&&(p===e||o(p,e,n,r,i)))return d.push(t);var a}))){f=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function Pe(e){return function(e,t,n){var r=t(e);return De(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,We,Ne)}function je(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ce(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Te(n)?n:void 0}ve.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},ve.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ve.prototype.get=function(e){var t=this.__data__;if(ue){var n=t[e];return n===r?void 0:n}return $.call(t,e)?t[e]:void 0},ve.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:$.call(t,e)},ve.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ue&&void 0===t?r:t,this},ye.prototype.clear=function(){this.__data__=[],this.size=0},ye.prototype.delete=function(e){var t=this.__data__,n=xe(t,e);return!(n<0)&&(n==t.length-1?t.pop():J.call(t,n,1),--this.size,!0)},ye.prototype.get=function(e){var t=this.__data__,n=xe(t,e);return n<0?void 0:t[n][1]},ye.prototype.has=function(e){return xe(this.__data__,e)>-1},ye.prototype.set=function(e,t){var n=this.__data__,r=xe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},me.prototype.clear=function(){this.size=0,this.__data__={hash:new ve,map:new(oe||ye),string:new ve}},me.prototype.delete=function(e){var t=je(this,e).delete(e);return this.size-=t?1:0,t},me.prototype.get=function(e){return je(this,e).get(e)},me.prototype.has=function(e){return je(this,e).has(e)},me.prototype.set=function(e,t){var n=je(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,r),this},be.prototype.has=function(e){return this.__data__.has(e)},we.prototype.clear=function(){this.__data__=new ye,this.size=0},we.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},we.prototype.get=function(e){return this.__data__.get(e)},we.prototype.has=function(e){return this.__data__.has(e)},we.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ye){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new me(r)}return n.set(e,t),this.size=n.size,this};var Ne=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(ee(e),(function(t){return Z.call(e,t)})))}:function(){return[]},Le=Ee;function Ie(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||E.test(e))&&e>-1&&e%1==0&&e<t}function Re(e){if(null!=e){try{return V.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Me(e,t){return e===t||e!=e&&t!=t}(re&&Le(new re(new ArrayBuffer(1)))!=S||oe&&Le(new oe)!=f||ie&&Le(ie.resolve())!=h||ae&&Le(new ae)!=v||se&&Le(new se)!=b)&&(Le=function(e){var t=Ee(e),n=t==p?e.constructor:void 0,r=n?Re(n):"";if(r)switch(r){case le:return S;case ce:return f;case fe:return h;case de:return v;case pe:return b}return t});var Fe=Oe(function(){return arguments}())?Oe:function(e){return Ve(e)&&$.call(e,"callee")&&!Z.call(e,"callee")},De=Array.isArray;var ze=te||function(){return!1};function Be(e){if(!He(e))return!1;var t=Ee(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ue(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function He(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ve(e){return null!=e&&"object"==typeof e}var $e=L?function(e){return function(t){return e(t)}}(L):function(e){return Ve(e)&&Ue(e.length)&&!!O[Ee(e)]};function We(e){return null!=(t=e)&&Ue(t.length)&&!Be(t)?Se(e):Ae(e);var t}e.exports=function(e,t){return ke(e,t)}})),dt="[object Map]",pt="[object Set]",ht=/^\[object .+?Constructor\]$/,gt=/^(?:0|[1-9]\d*)$/,vt="[\\ud800-\\udfff]",yt="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",mt="\\ud83c[\\udffb-\\udfff]",bt="[^\\ud800-\\udfff]",wt="(?:\\ud83c[\\udde6-\\uddff]){2}",St="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="(?:"+yt+"|"+mt+")"+"?",Et="[\\ufe0e\\ufe0f]?"+xt+("(?:\\u200d(?:"+[bt,wt,St].join("|")+")[\\ufe0e\\ufe0f]?"+xt+")*"),Ot="(?:"+[bt+yt+"?",yt,wt,St,vt].join("|")+")",kt=RegExp(mt+"(?="+mt+")|"+Ot+Et,"g"),Tt=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),At="object"==typeof n&&n&&n.Object===Object&&n,_t="object"==typeof self&&self&&self.Object===Object&&self,Pt=At||_t||Function("return this")();function jt(e,t){return function(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(t,(function(t){return e[t]}))}function Ct(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Nt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Lt(e){return function(e){return Tt.test(e)}(e)?function(e){return e.match(kt)||[]}(e):function(e){return e.split("")}(e)}var It,Rt,Mt=Function.prototype,Ft=Object.prototype,Dt=Pt["__core-js_shared__"],zt=function(){var e=/[^.]+$/.exec(Dt&&Dt.keys&&Dt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Bt=Mt.toString,Ut=Ft.hasOwnProperty,Ht=Ft.toString,Vt=RegExp("^"+Bt.call(Ut).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$t=Pt.Symbol,Wt=$t?$t.iterator:void 0,qt=Ft.propertyIsEnumerable,Gt=(It=Object.keys,Rt=Object,function(e){return It(Rt(e))}),Kt=un(Pt,"DataView"),Yt=un(Pt,"Map"),Xt=un(Pt,"Promise"),Zt=un(Pt,"Set"),Jt=un(Pt,"WeakMap"),Qt=fn(Kt),en=fn(Yt),tn=fn(Xt),nn=fn(Zt),rn=fn(Jt);function on(e,t){var n=dn(e)||function(e){return function(e){return vn(e)&&pn(e)}(e)&&Ut.call(e,"callee")&&(!qt.call(e,"callee")||"[object Arguments]"==Ht.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!Ut.call(e,i)||o&&("length"==i||cn(i,r))||n.push(i);return n}function an(e){return!(!gn(e)||function(e){return!!zt&&zt in e}(e))&&(hn(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?Vt:ht).test(fn(e))}function sn(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Ft,t!==r)return Gt(e);var t,n,r,o=[];for(var i in Object(e))Ut.call(e,i)&&"constructor"!=i&&o.push(i);return o}function un(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return an(n)?n:void 0}var ln=function(e){return Ht.call(e)};function cn(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||gt.test(e))&&e>-1&&e%1==0&&e<t}function fn(e){if(null!=e){try{return Bt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(Kt&&"[object DataView]"!=ln(new Kt(new ArrayBuffer(1)))||Yt&&ln(new Yt)!=dt||Xt&&"[object Promise]"!=ln(Xt.resolve())||Zt&&ln(new Zt)!=pt||Jt&&"[object WeakMap]"!=ln(new Jt))&&(ln=function(e){var t=Ht.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?fn(n):void 0;if(r)switch(r){case Qt:return"[object DataView]";case en:return dt;case tn:return"[object Promise]";case nn:return pt;case rn:return"[object WeakMap]"}return t});var dn=Array.isArray;function pn(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!hn(e)}function hn(e){var t=gn(e)?Ht.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function gn(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function vn(e){return!!e&&"object"==typeof e}function yn(e){return e?jt(e,function(e){return pn(e)?on(e):sn(e)}(e)):[]}var mn=function(e){if(!e)return[];if(pn(e))return function(e){return"string"==typeof e||!dn(e)&&vn(e)&&"[object String]"==Ht.call(e)}(e)?Lt(e):function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);if(Wt&&e[Wt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Wt]());var t=ln(e);return(t==dt?Ct:t==pt?Nt:yn)(e)};function bn(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function wn(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:bn(t[n])&&bn(e[n])&&Object.keys(t[n]).length>0&&wn(e[n],t[n])}))}var Sn={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function xn(){var e="undefined"!=typeof document?document:{};return wn(e,Sn),e}var En={document:Sn,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function On(){var e="undefined"!=typeof window?window:{};return wn(e,En),e}function kn(e){return(kn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tn(e,t){return(Tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function An(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _n(e,t,n){return(_n=An()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Tn(o,n.prototype),o}).apply(null,arguments)}function Pn(e){var t="function"==typeof Map?new Map:void 0;return(Pn=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _n(e,arguments,kn(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Tn(n,e)})(e)}var jn=function(e){var t,n;function r(t){var n,r,o;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(Pn(Array));function Cn(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Cn(e)):t.push(e)})),t}function Nn(e,t){return Array.prototype.filter.call(e,t)}function Ln(e,t){var n=On(),r=xn(),o=[];if(!t&&e instanceof jn)return e;if(!e)return new jn(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";0===i.indexOf("<li")&&(a="ul"),0===i.indexOf("<tr")&&(a="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(a="tr"),0===i.indexOf("<tbody")&&(a="table"),0===i.indexOf("<option")&&(a="select");var s=r.createElement(a);s.innerHTML=i;for(var u=0;u<s.childNodes.length;u+=1)o.push(s.childNodes[u])}else o=function(e,t){if("string"!=typeof e)return[e];for(var n=[],r=t.querySelectorAll(e),o=0;o<r.length;o+=1)n.push(r[o]);return n}(e.trim(),t||r)}else if(e.nodeType||e===n||e===r)o.push(e);else if(Array.isArray(e)){if(e instanceof jn)return e;o=e}return new jn(function(e){for(var t=[],n=0;n<e.length;n+=1)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(o))}function In(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Cn(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).add.apply(t,r)})),this}function Rn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Cn(t.map((function(e){return e.split(" ")})));return this.forEach((function(e){var t;(t=e.classList).remove.apply(t,r)})),this}function Mn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Cn(t.map((function(e){return e.split(" ")})));return Nn(this,(function(e){return r.filter((function(t){return e.classList.contains(t)})).length>0})).length>0}function Fn(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===arguments.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}function Dn(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function zn(){var e=this[0];if(e){var t,n={};if(e.dataset)for(var r in e.dataset)n[r]=e.dataset[r];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(n[(t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=i.value)}for(var a in n)"false"===n[a]?n[a]=!1:"true"===n[a]?n[a]=!0:parseFloat(n[a])===1*n[a]&&(n[a]*=1);return n}}function Bn(e){if(void 0===e){var t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){for(var n=[],r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function Un(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];function s(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),Ln(t).is(o))i.apply(t,n);else for(var r=Ln(t).parents(),a=0;a<r.length;a+=1)Ln(r[a]).is(o)&&i.apply(r[a],n)}}function u(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),i.apply(this,t)}"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=r.split(" "),f=0;f<this.length;f+=1){var d=this[f];if(o)for(l=0;l<c.length;l+=1){var p=c[l];d.dom7LiveListeners||(d.dom7LiveListeners={}),d.dom7LiveListeners[p]||(d.dom7LiveListeners[p]=[]),d.dom7LiveListeners[p].push({listener:i,proxyListener:s}),d.addEventListener(p,s,a)}else for(l=0;l<c.length;l+=1){var h=c[l];d.dom7Listeners||(d.dom7Listeners={}),d.dom7Listeners[h]||(d.dom7Listeners[h]=[]),d.dom7Listeners[h].push({listener:i,proxyListener:u}),d.addEventListener(h,u,a)}}return this}function Hn(){var e=On();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Vn(){var e=On();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function $n(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function Wn(){for(var e=On(),t=0;t<this.length;t+=1){var n=this[t];"none"===n.style.display&&(n.style.display=""),"none"===e.getComputedStyle(n,null).getPropertyValue("display")&&(n.style.display="block")}return this}function qn(e,t){var n,r=On();if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var o in e)this[n].style[o]=e[o];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function Gn(e){return e?(this.forEach((function(t,n){e.apply(t,[t,n])})),this):this}function Kn(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function Yn(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function Xn(){for(var e,t=xn(),n=0;n<arguments.length;n+=1){e=n<0||arguments.length<=n?void 0:arguments[n];for(var r=0;r<this.length;r+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[r].appendChild(o.firstChild)}else if(e instanceof jn)for(var i=0;i<e.length;i+=1)this[r].appendChild(e[i]);else this[r].appendChild(e)}return this}function Zn(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?Ln(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return Ln(t)}function Jn(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return Ln(t)}function Qn(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].children,o=0;o<r.length;o+=1)e&&!Ln(r[o]).is(e)||t.push(r[o]);return Ln(t)}function er(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}Ln.fn=jn.prototype;var tr="resize scroll".split(" ");function nr(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0===n[0]){for(var o=0;o<this.length;o+=1)tr.indexOf(e)<0&&(e in this[o]?this[o][e]():Ln(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(n))}}var rr=nr("click"),or=nr("focus"),ir="[object GeneratorFunction]",ar=/^(?:0|[1-9]\d*)$/;function sr(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var ur=Object.prototype,lr=ur.hasOwnProperty,cr=ur.toString,fr=ur.propertyIsEnumerable,dr=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function pr(e,t){var n=wr(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Sr(e)}(e)&&lr.call(e,"callee")&&(!fr.call(e,"callee")||"[object Arguments]"==cr.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var i in e)!t&&!lr.call(e,i)||o&&("length"==i||br(i,r))||n.push(i);return n}var hr,gr,vr=(hr=function(e,t){return e&&yr(e,t,xr)},function(e,t){if(null==e)return e;if(!Sr(e))return hr(e,t);for(var n=e.length,r=gr?n:-1,o=Object(e);(gr?r--:++r<n)&&!1!==t(o[r],r,o););return e}),yr=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}();function mr(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||ur,t!==r)return dr(e);var t,n,r,o=[];for(var i in Object(e))lr.call(e,i)&&"constructor"!=i&&o.push(i);return o}function br(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||ar.test(e))&&e>-1&&e%1==0&&e<t}var wr=Array.isArray;function Sr(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?cr.call(e):"";return"[object Function]"==t||t==ir}(e)}function xr(e){return Sr(e)?pr(e):mr(e)}function Er(e){return e}var Or=function(e,t){return(wr(e)?sr:vr)(e,"function"==typeof t?t:Er)},kr=/^\s+|\s+$/g,Tr=/^[-+]0x[0-9a-f]+$/i,Ar=/^0b[01]+$/i,_r=/^0o[0-7]+$/i,Pr=parseInt,jr="object"==typeof n&&n&&n.Object===Object&&n,Cr="object"==typeof self&&self&&self.Object===Object&&self,Nr=jr||Cr||Function("return this")(),Lr=Object.prototype.toString,Ir=Math.max,Rr=Math.min,Mr=function(){return Nr.Date.now()};function Fr(e,t,n){var r,o,i,a,s,u,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,s=setTimeout(v,t),c?p(e):a}function g(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-l>=i}function v(){var e=Mr();if(g(e))return y(e);s=setTimeout(v,function(e){var n=t-(e-u);return f?Rr(n,i-(e-l)):n}(e))}function y(e){return s=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Mr(),n=g(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return h(u);if(f)return s=setTimeout(v,t),p(u)}return void 0===s&&(s=setTimeout(v,t)),a}return t=zr(t)||0,Dr(n)&&(c=!!n.leading,i=(f="maxWait"in n)?Ir(zr(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=o=s=void 0},m.flush=function(){return void 0===s?a:y(Mr())},m}function Dr(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function zr(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Lr.call(e)}(e))return NaN;if(Dr(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Dr(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(kr,"");var n=Ar.test(e);return n||_r.test(e)?Pr(e.slice(2),n?2:8):Tr.test(e)?NaN:+e}var Br=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return Dr(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Fr(e,t,{leading:r,maxWait:t,trailing:o})};const Ur={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,n){return document.createElementNS(e,t,n)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return 1===e.nodeType},isText:function(e){return 3===e.nodeType},isComment:function(e){return 8===e.nodeType}};function Hr(e,t,n,r,o){return{sel:e,data:t,children:n,text:r,elm:o,key:void 0===t?void 0:t.key}}const Vr=Array.isArray;function $r(e){return"string"==typeof e||"number"==typeof e}function Wr(e){return void 0===e}function qr(e){return void 0!==e}const Gr=Hr("",{},[],void 0,void 0);function Kr(e,t){var n,r;const o=e.key===t.key,i=(null===(n=e.data)||void 0===n?void 0:n.is)===(null===(r=t.data)||void 0===r?void 0:r.is);return e.sel===t.sel&&o&&i}function Yr(e,t,n){var r;const o={};for(let i=t;i<=n;++i){const t=null===(r=e[i])||void 0===r?void 0:r.key;void 0!==t&&(o[t]=i)}return o}const Xr=["create","update","remove","destroy","pre","post"];function Zr(e,t){let n,r;const o={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},i=void 0!==t?t:Ur;for(n=0;n<Xr.length;++n)for(o[Xr[n]]=[],r=0;r<e.length;++r){const t=e[r][Xr[n]];void 0!==t&&o[Xr[n]].push(t)}function a(e){const t=e.id?"#"+e.id:"",n=e.className?"."+e.className.split(" ").join("."):"";return Hr(i.tagName(e).toLowerCase()+t+n,{},[],void 0,e)}function s(e,t){return function(){if(0==--t){const t=i.parentNode(e);i.removeChild(t,e)}}}function u(e,t){var n,r;let a,s=e.data;if(void 0!==s){const t=null===(n=s.hook)||void 0===n?void 0:n.init;qr(t)&&(t(e),s=e.data)}const l=e.children,c=e.sel;if("!"===c)Wr(e.text)&&(e.text=""),e.elm=i.createComment(e.text);else if(void 0!==c){const n=c.indexOf("#"),f=c.indexOf(".",n),d=n>0?n:c.length,p=f>0?f:c.length,h=-1!==n||-1!==f?c.slice(0,Math.min(d,p)):c,g=e.elm=qr(s)&&qr(a=s.ns)?i.createElementNS(a,h,s):i.createElement(h,s);for(d<p&&g.setAttribute("id",c.slice(d+1,p)),f>0&&g.setAttribute("class",c.slice(p+1).replace(/\./g," ")),a=0;a<o.create.length;++a)o.create[a](Gr,e);if(Vr(l))for(a=0;a<l.length;++a){const e=l[a];null!=e&&i.appendChild(g,u(e,t))}else $r(e.text)&&i.appendChild(g,i.createTextNode(e.text));const v=e.data.hook;qr(v)&&(null===(r=v.create)||void 0===r||r.call(v,Gr,e),v.insert&&t.push(e))}else e.elm=i.createTextNode(e.text);return e.elm}function l(e,t,n,r,o,a){for(;r<=o;++r){const o=n[r];null!=o&&i.insertBefore(e,u(o,a),t)}}function c(e){var t,n;const r=e.data;if(void 0!==r){null===(n=null===(t=null==r?void 0:r.hook)||void 0===t?void 0:t.destroy)||void 0===n||n.call(t,e);for(let t=0;t<o.destroy.length;++t)o.destroy[t](e);if(void 0!==e.children)for(let t=0;t<e.children.length;++t){const n=e.children[t];null!=n&&"string"!=typeof n&&c(n)}}}function f(e,t,n,r){for(var a,u;n<=r;++n){let r,l;const f=t[n];if(null!=f)if(qr(f.sel)){c(f),r=o.remove.length+1,l=s(f.elm,r);for(let e=0;e<o.remove.length;++e)o.remove[e](f,l);const e=null===(u=null===(a=null==f?void 0:f.data)||void 0===a?void 0:a.hook)||void 0===u?void 0:u.remove;qr(e)?e(f,l):l()}else i.removeChild(e,f.elm)}}function d(e,t,n){var r,a,s,c,p;const h=null===(r=t.data)||void 0===r?void 0:r.hook;null===(a=null==h?void 0:h.prepatch)||void 0===a||a.call(h,e,t);const g=t.elm=e.elm,v=e.children,y=t.children;if(e!==t){if(void 0!==t.data){for(let n=0;n<o.update.length;++n)o.update[n](e,t);null===(c=null===(s=t.data.hook)||void 0===s?void 0:s.update)||void 0===c||c.call(s,e,t)}Wr(t.text)?qr(v)&&qr(y)?v!==y&&function(e,t,n,r){let o,a,s,c,p=0,h=0,g=t.length-1,v=t[0],y=t[g],m=n.length-1,b=n[0],w=n[m];for(;p<=g&&h<=m;)null==v?v=t[++p]:null==y?y=t[--g]:null==b?b=n[++h]:null==w?w=n[--m]:Kr(v,b)?(d(v,b,r),v=t[++p],b=n[++h]):Kr(y,w)?(d(y,w,r),y=t[--g],w=n[--m]):Kr(v,w)?(d(v,w,r),i.insertBefore(e,v.elm,i.nextSibling(y.elm)),v=t[++p],w=n[--m]):Kr(y,b)?(d(y,b,r),i.insertBefore(e,y.elm,v.elm),y=t[--g],b=n[++h]):(void 0===o&&(o=Yr(t,p,g)),a=o[b.key],Wr(a)?i.insertBefore(e,u(b,r),v.elm):(s=t[a],s.sel!==b.sel?i.insertBefore(e,u(b,r),v.elm):(d(s,b,r),t[a]=void 0,i.insertBefore(e,s.elm,v.elm))),b=n[++h]);(p<=g||h<=m)&&(p>g?(c=null==n[m+1]?null:n[m+1].elm,l(e,c,n,h,m,r)):f(e,t,p,g))}(g,v,y,n):qr(y)?(qr(e.text)&&i.setTextContent(g,""),l(g,null,y,0,y.length-1,n)):qr(v)?f(g,v,0,v.length-1):qr(e.text)&&i.setTextContent(g,""):e.text!==t.text&&(qr(v)&&f(g,v,0,v.length-1),i.setTextContent(g,t.text)),null===(p=null==h?void 0:h.postpatch)||void 0===p||p.call(h,e,t)}}return function(e,t){let n,r,s;const l=[];for(n=0;n<o.pre.length;++n)o.pre[n]();for(function(e){return void 0!==e.sel}(e)||(e=a(e)),Kr(e,t)?d(e,t,l):(r=e.elm,s=i.parentNode(r),u(t,l),null!==s&&(i.insertBefore(s,t.elm,i.nextSibling(r)),f(s,[e],0,0))),n=0;n<l.length;++n)l[n].data.hook.insert(l[n]);for(n=0;n<o.post.length;++n)o.post[n]();return t}}function Jr(e,t,n){if(e.ns="http://www.w3.org/2000/svg","foreignObject"!==n&&void 0!==t)for(let e=0;e<t.length;++e){const n=t[e].data;void 0!==n&&Jr(n,t[e].children,t[e].sel)}}function Qr(e,t,n){let r,o,i,a={};if(void 0!==n?(null!==t&&(a=t),Vr(n)?r=n:$r(n)?o=n:n&&n.sel&&(r=[n])):null!=t&&(Vr(t)?r=t:$r(t)?o=t:t&&t.sel?r=[t]:a=t),void 0!==r)for(i=0;i<r.length;++i)$r(r[i])&&(r[i]=Hr(void 0,void 0,void 0,r[i],void 0));return"s"!==e[0]||"v"!==e[1]||"g"!==e[2]||3!==e.length&&"."!==e[3]&&"#"!==e[3]||Jr(a,r,e),Hr(e,a,r,o,void 0)}function eo(e,t){let n,r;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(r in i=i||{},a=a||{},i)i[r]&&!Object.prototype.hasOwnProperty.call(a,r)&&o.classList.remove(r);for(r in a)n=a[r],n!==i[r]&&o.classList[n?"add":"remove"](r)}}const to={create:eo,update:eo},no=/[A-Z]/g;function ro(e,t){const n=t.elm;let r,o=e.data.dataset,i=t.data.dataset;if(!o&&!i)return;if(o===i)return;o=o||{},i=i||{};const a=n.dataset;for(r in o)i[r]||(a?r in a&&delete a[r]:n.removeAttribute("data-"+r.replace(no,"-$&").toLowerCase()));for(r in i)o[r]!==i[r]&&(a?a[r]=i[r]:n.setAttribute("data-"+r.replace(no,"-$&").toLowerCase(),i[r]))}const oo={create:ro,update:ro};function io(e,t,n){if("function"==typeof e)e.call(t,n,t);else if("object"==typeof e)for(let r=0;r<e.length;r++)io(e[r],t,n)}function ao(e,t){const n=e.type,r=t.data.on;r&&r[n]&&io(r[n],t,e)}function so(e,t){const n=e.data.on,r=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let s;if(n!==i){if(n&&r)if(i)for(s in n)i[s]||o.removeEventListener(s,r,!1);else for(s in n)o.removeEventListener(s,r,!1);if(i){const r=t.listener=e.listener||function e(t){ao(t,e.vnode)};if(r.vnode=t,n)for(s in i)n[s]||a.addEventListener(s,r,!1);else for(s in i)a.addEventListener(s,r,!1)}}}const uo={create:so,update:so,destroy:so};function lo(e,t){let n,r,o;const i=t.elm;let a=e.data.props,s=t.data.props;if((a||s)&&a!==s)for(n in a=a||{},s=s||{},s)r=s[n],o=a[n],o===r||"value"===n&&i[n]===r||(i[n]=r)}const co={create:lo,update:lo},fo="undefined"!=typeof window&&window.requestAnimationFrame.bind(window)||setTimeout;let po=!1;function ho(e,t,n){!function(e){fo((function(){fo(e)}))}((function(){e[t]=n}))}function go(e,t){let n,r;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a)return;if(i===a)return;i=i||{},a=a||{};const s="delayed"in i;for(r in i)a[r]||("-"===r[0]&&"-"===r[1]?o.style.removeProperty(r):o.style[r]="");for(r in a)if(n=a[r],"delayed"===r&&a.delayed)for(const e in a.delayed)n=a.delayed[e],s&&n===i.delayed[e]||ho(o.style,e,n);else"remove"!==r&&n!==i[r]&&("-"===r[0]&&"-"===r[1]?o.style.setProperty(r,n):o.style[r]=n)}const vo={pre:function(){po=!1},create:go,update:go,destroy:function(e){let t,n;const r=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(n in t)r.style[n]=t[n]},remove:function(e,t){const n=e.data.style;if(!n||!n.remove)return void t();let r;po||(e.elm.offsetLeft,po=!0);const o=e.elm;let i=0;const a=n.remove;let s=0;const u=[];for(r in a)u.push(r),o.style[r]=a[r];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)-1!==u.indexOf(l[i])&&s++;o.addEventListener("transitionend",(function(e){e.target===o&&--s,0===s&&t()}))}};function yo(e,t){for(const n of e)null!=n&&!1!==n&&""!==n&&(Array.isArray(n)?yo(n,t):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?t.push(Hr(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function mo(e,t,...n){const r=yo(n,[]);return"function"==typeof e?e(t,r):1===r.length&&!r[0].sel&&r[0].text?Qr(e,t,r[0].text):Qr(e,t,r)}mo||(mo={});var bo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,wo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,So="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",xo="[\\ud800-\\udfff]",Eo="["+So+"]",Oo="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",ko="\\d+",To="[\\u2700-\\u27bf]",Ao="[a-z\\xdf-\\xf6\\xf8-\\xff]",_o="[^\\ud800-\\udfff"+So+ko+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Po="\\ud83c[\\udffb-\\udfff]",jo="[^\\ud800-\\udfff]",Co="(?:\\ud83c[\\udde6-\\uddff]){2}",No="[\\ud800-\\udbff][\\udc00-\\udfff]",Lo="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Io="(?:"+Ao+"|"+_o+")",Ro="(?:"+Lo+"|"+_o+")",Mo="(?:"+Oo+"|"+Po+")"+"?",Fo="[\\ufe0e\\ufe0f]?"+Mo+("(?:\\u200d(?:"+[jo,Co,No].join("|")+")[\\ufe0e\\ufe0f]?"+Mo+")*"),Do="(?:"+[To,Co,No].join("|")+")"+Fo,zo="(?:"+[jo+Oo+"?",Oo,Co,No,xo].join("|")+")",Bo=RegExp("['’]","g"),Uo=RegExp(Oo,"g"),Ho=RegExp(Po+"(?="+Po+")|"+zo+Fo,"g"),Vo=RegExp([Lo+"?"+Ao+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Eo,Lo,"$"].join("|")+")",Ro+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Eo,Lo+Io,"$"].join("|")+")",Lo+"?"+Io+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Lo+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",ko,Do].join("|"),"g"),$o=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),Wo=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,qo="object"==typeof n&&n&&n.Object===Object&&n,Go="object"==typeof self&&self&&self.Object===Object&&self,Ko=qo||Go||Function("return this")();var Yo,Xo=(Yo={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"ss"},function(e){return null==Yo?void 0:Yo[e]});function Zo(e){return $o.test(e)}function Jo(e){return Zo(e)?function(e){return e.match(Ho)||[]}(e):function(e){return e.split("")}(e)}var Qo=Object.prototype.toString,ei=Ko.Symbol,ti=ei?ei.prototype:void 0,ni=ti?ti.toString:void 0;function ri(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Qo.call(e)}(e))return ni?ni.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function oi(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}function ii(e){return null==e?"":ri(e)}var ai,si=(ai=function(e,t,n){return t=t.toLowerCase(),e+(n?li(ii(t).toLowerCase()):t)},function(e){return function(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}(function(e,t,n){return e=ii(e),void 0===(t=n?void 0:t)?function(e){return Wo.test(e)}(e)?function(e){return e.match(Vo)||[]}(e):function(e){return e.match(bo)||[]}(e):e.match(t)||[]}(function(e){return(e=ii(e))&&e.replace(wo,Xo).replace(Uo,"")}(e).replace(Bo,"")),ai,"")});var ui,li=(ui="toUpperCase",function(e){var t=Zo(e=ii(e))?Jo(e):void 0,n=t?t[0]:e.charAt(0),r=t?oi(t,1).join(""):e.slice(1);return n[ui]()+r});for(var ci=si,fi="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),di={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},pi={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:fi?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},hi={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},gi=1;gi<20;gi++)hi["f"+gi]=111+gi;function vi(e,t,n){t&&!("byKey"in t)&&(n=t,t=null),Array.isArray(e)||(e=[e]);var r=e.map((function(e){return function(e,t){var n=t&&t.byKey,r={},o=(e=e.replace("++","+add")).split("+"),i=o.length;for(var a in di)r[di[a]]=!1;var s=!0,u=!1,l=void 0;try{for(var c,f=o[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var d=c.value,p=d.endsWith("?")&&d.length>1;p&&(d=d.slice(0,-1));var h=mi(d),g=di[h];if(d.length>1&&!g&&!pi[d]&&!hi[h])throw new TypeError('Unknown modifier: "'+d+'"');1!==i&&g||(n?r.key=h:r.which=yi(d)),g&&(r[g]=!p||null)}}catch(e){u=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(u)throw l}}return r}(e,t)})),o=function(e){return r.some((function(t){return function(e,t){for(var n in e){var r=e[n],o=void 0;if(null!=r&&((null!=(o="key"===n&&null!=t.key?t.key.toLowerCase():"which"===n?91===r&&93===t.which?91:t.which:t[n])||!1!==r)&&o!==r))return!1}return!0}(t,e)}))};return null==n?o:o(n)}function yi(e){return e=mi(e),hi[e]||e.toUpperCase().charCodeAt(0)}function mi(e){return e=e.toLowerCase(),e=pi[e]||e}var bi=vi,wi=function(e,t){return vi(e,{byKey:!0},t)},Si=/^\s+|\s+$/g,xi=/^[-+]0x[0-9a-f]+$/i,Ei=/^0b[01]+$/i,Oi=/^0o[0-7]+$/i,ki=parseInt,Ti="object"==typeof n&&n&&n.Object===Object&&n,Ai="object"==typeof self&&self&&self.Object===Object&&self,_i=Ti||Ai||Function("return this")(),Pi=Object.prototype.toString,ji=Math.max,Ci=Math.min,Ni=function(){return _i.Date.now()};function Li(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ii(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Pi.call(e)}(e))return NaN;if(Li(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Li(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Si,"");var n=Ei.test(e);return n||Oi.test(e)?ki(e.slice(2),n?2:8):xi.test(e)?NaN:+e}var Ri=function(e,t,n){var r,o,i,a,s,u,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function h(e){return l=e,s=setTimeout(v,t),c?p(e):a}function g(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-l>=i}function v(){var e=Ni();if(g(e))return y(e);s=setTimeout(v,function(e){var n=t-(e-u);return f?Ci(n,i-(e-l)):n}(e))}function y(e){return s=void 0,d&&r?p(e):(r=o=void 0,a)}function m(){var e=Ni(),n=g(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return h(u);if(f)return s=setTimeout(v,t),p(u)}return void 0===s&&(s=setTimeout(v,t)),a}return t=Ii(t)||0,Li(n)&&(c=!!n.leading,i=(f="maxWait"in n)?ji(Ii(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),m.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=o=s=void 0},m.flush=function(){return void 0===s?a:y(Ni())},m},Mi=i((function(e,t){var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Boolean]",s="[object Date]",u="[object Function]",l="[object GeneratorFunction]",c="[object Map]",f="[object Number]",d="[object Object]",p="[object Promise]",h="[object RegExp]",g="[object Set]",v="[object String]",y="[object Symbol]",m="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",S="[object Float32Array]",x="[object Float64Array]",E="[object Int8Array]",O="[object Int16Array]",k="[object Int32Array]",T="[object Uint8Array]",A="[object Uint8ClampedArray]",_="[object Uint16Array]",P="[object Uint32Array]",j=/\w*$/,C=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,L={};L[i]=L["[object Array]"]=L[b]=L[w]=L[a]=L[s]=L[S]=L[x]=L[E]=L[O]=L[k]=L[c]=L[f]=L[d]=L[h]=L[g]=L[v]=L[y]=L[T]=L[A]=L[_]=L[P]=!0,L["[object Error]"]=L[u]=L[m]=!1;var I="object"==typeof n&&n&&n.Object===Object&&n,R="object"==typeof self&&self&&self.Object===Object&&self,M=I||R||Function("return this")(),F=t&&!t.nodeType&&t,D=F&&e&&!e.nodeType&&e,z=D&&D.exports===F;function B(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function H(e,t,n,r){var o=-1,i=e?e.length:0;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function $(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var G=Array.prototype,K=Function.prototype,Y=Object.prototype,X=M["__core-js_shared__"],Z=function(){var e=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),J=K.toString,Q=Y.hasOwnProperty,ee=Y.toString,te=RegExp("^"+J.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=z?M.Buffer:void 0,re=M.Symbol,oe=M.Uint8Array,ie=W(Object.getPrototypeOf,Object),ae=Object.create,se=Y.propertyIsEnumerable,ue=G.splice,le=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,fe=W(Object.keys,Object),de=Fe(M,"DataView"),pe=Fe(M,"Map"),he=Fe(M,"Promise"),ge=Fe(M,"Set"),ve=Fe(M,"WeakMap"),ye=Fe(Object,"create"),me=He(de),be=He(pe),we=He(he),Se=He(ge),xe=He(ve),Ee=re?re.prototype:void 0,Oe=Ee?Ee.valueOf:void 0;function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _e(e){this.__data__=new Te(e)}function Pe(e,t){var n=$e(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&Q.call(e,"callee")&&(!se.call(e,"callee")||ee.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Q.call(e,a)||o&&("length"==a||Be(a,r))||n.push(a);return n}function je(e,t,n){var r=e[t];Q.call(e,t)&&Ve(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Ce(e,t){for(var n=e.length;n--;)if(Ve(e[n][0],t))return n;return-1}function Ne(e,t,n,r,o,p,m){var C;if(r&&(C=p?r(e,o,p,m):r(e)),void 0!==C)return C;if(!Ke(e))return e;var N=$e(e);if(N){if(C=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&Q.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,C)}else{var I=ze(e),R=I==u||I==l;if(qe(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(I==d||I==i||R&&!p){if(V(e))return p?e:{};if(C=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:(t=ie(e),Ke(t)?ae(t):{});var t}(R?{}:e),!t)return function(e,t){return Re(e,De(e),t)}(e,function(e,t){return e&&Re(t,Ye(t),e)}(C,e))}else{if(!L[I])return p?e:{};C=function(e,t,n,r){var o=e.constructor;switch(t){case b:return Ie(e);case a:case s:return new o(+e);case w:return function(e,t){var n=t?Ie(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case S:case x:case E:case O:case k:case T:case A:case _:case P:return function(e,t){var n=t?Ie(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case c:return function(e,t,n){return H(t?n($(e),!0):$(e),B,new e.constructor)}(e,r,n);case f:case v:return new o(e);case h:return function(e){var t=new e.constructor(e.source,j.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return function(e,t,n){return H(t?n(q(e),!0):q(e),U,new e.constructor)}(e,r,n);case y:return function(e){return Oe?Object(Oe.call(e)):{}}(e)}}(e,I,Ne,t)}}m||(m=new _e);var M=m.get(e);if(M)return M;if(m.set(e,C),!N)var F=n?function(e){return function(e,t,n){var r=t(e);return $e(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ye,De)}(e):Ye(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(F||e,(function(o,i){F&&(o=e[i=o]),je(C,i,Ne(o,t,n,r,i,e,m))})),C}function Le(e){return!(!Ke(e)||function(e){return!!Z&&Z in e}(e))&&(Ge(e)||V(e)?te:C).test(He(e))}function Ie(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Re(e,t,n,r){n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=r?r(n[a],e[a],a,n,e):void 0;je(n,a,void 0===s?e[a]:s)}return n}function Me(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Fe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Le(n)?n:void 0}ke.prototype.clear=function(){this.__data__=ye?ye(null):{}},ke.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ke.prototype.get=function(e){var t=this.__data__;if(ye){var n=t[e];return n===r?void 0:n}return Q.call(t,e)?t[e]:void 0},ke.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t[e]:Q.call(t,e)},ke.prototype.set=function(e,t){return this.__data__[e]=ye&&void 0===t?r:t,this},Te.prototype.clear=function(){this.__data__=[]},Te.prototype.delete=function(e){var t=this.__data__,n=Ce(t,e);return!(n<0)&&(n==t.length-1?t.pop():ue.call(t,n,1),!0)},Te.prototype.get=function(e){var t=this.__data__,n=Ce(t,e);return n<0?void 0:t[n][1]},Te.prototype.has=function(e){return Ce(this.__data__,e)>-1},Te.prototype.set=function(e,t){var n=this.__data__,r=Ce(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new ke,map:new(pe||Te),string:new ke}},Ae.prototype.delete=function(e){return Me(this,e).delete(e)},Ae.prototype.get=function(e){return Me(this,e).get(e)},Ae.prototype.has=function(e){return Me(this,e).has(e)},Ae.prototype.set=function(e,t){return Me(this,e).set(e,t),this},_e.prototype.clear=function(){this.__data__=new Te},_e.prototype.delete=function(e){return this.__data__.delete(e)},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Te){var r=n.__data__;if(!pe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ae(r)}return n.set(e,t),this};var De=le?W(le,Object):function(){return[]},ze=function(e){return ee.call(e)};function Be(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Y)}function He(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ve(e,t){return e===t||e!=e&&t!=t}(de&&ze(new de(new ArrayBuffer(1)))!=w||pe&&ze(new pe)!=c||he&&ze(he.resolve())!=p||ge&&ze(new ge)!=g||ve&&ze(new ve)!=m)&&(ze=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?He(n):void 0;if(r)switch(r){case me:return w;case be:return c;case we:return p;case Se:return g;case xe:return m}return t});var $e=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!Ge(e)}var qe=ce||function(){return!1};function Ge(e){var t=Ke(e)?ee.call(e):"";return t==u||t==l}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ye(e){return We(e)?Pe(e):function(e){if(!Ue(e))return fe(e);var t=[];for(var n in Object(e))Q.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Ne(e,!0,!0)}})),Fi=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function Di(){return(Di=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var zi,Bi=function(){function e(e){var t=this;this.locale={strings:{},pluralize:function(e){return 1===e?0:1}},Array.isArray(e)?e.forEach((function(e){return t._apply(e)})):this._apply(e)}var t=e.prototype;return t._apply=function(e){if(e&&e.strings){var t=this.locale;this.locale=Di({},t,{strings:Di({},t.strings,e.strings)}),this.locale.pluralize=e.pluralize||t.pluralize}}
/**
   * Takes a string with placeholder variables like `%{smart_count} file selected`
   * and replaces it with values from options `{smart_count: 5}`
   *
   * @license https://github.com/airbnb/polyglot.js/blob/master/LICENSE
   * taken from https://github.com/airbnb/polyglot.js/blob/master/lib/polyglot.js#L299
   *
   * @param {string} phrase that needs interpolation, with placeholders
   * @param {object} options with values that will be used to replace placeholders
   * @returns {any[]} interpolated
   */,t.interpolate=function(e,t){var n=String.prototype,r=n.split,o=n.replace,i=/\$/g,a=[e];for(var s in t)if("_"!==s&&Fi(t,s)){var u=t[s];"string"==typeof u&&(u=o.call(t[s],i,"$$$$")),a=l(a,new RegExp("%\\{"+s+"\\}","g"),u)}return a;function l(e,t,n){var o=[];return e.forEach((function(e){if("string"!=typeof e)return o.push(e);r.call(e,t).forEach((function(e,t,r){""!==e&&o.push(e),t<r.length-1&&o.push(n)}))})),o}},t.translate=function(e,t){return this.translateArray(e,t).join("")},t.translateArray=function(e,t){if(!Fi(this.locale.strings,e))throw new Error("missing string: "+e);var n=this.locale.strings[e];if("object"==typeof n){if(t&&void 0!==t.smart_count){var r=this.locale.pluralize(t.smart_count);return this.interpolate(n[r],t)}throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return this.interpolate(n,t)},e}(),Ui=function(){var e={},t=e._fns={};return e.emit=function(e,n,r,o,i,a,s){var u=function(e){var n=t[e]?t[e]:[],r=e.indexOf(":"),o=-1===r?[e]:[e.substring(0,r),e.substring(r+1)],i=Object.keys(t),a=0,s=i.length;for(;a<s;a++){var u=i[a];if("*"===u&&(n=n.concat(t[u])),2===o.length&&o[0]===u){n=n.concat(t[u]);break}}return n}(e);u.length&&function(e,t,n){var r=0,o=t.length;for(;r<o&&t[r];r++)t[r].event=e,t[r].apply(t[r],n)}(e,u,[n,r,o,i,a,s])},e.on=function(e,n){t[e]||(t[e]=[]),t[e].push(n)},e.once=function(t,n){this.on(t,(function r(){n.apply(this,arguments),e.off(t,r)}))},e.off=function(e,t){var n=[];if(e&&t)for(var r=this._fns[e],o=0,i=r?r.length:0;o<i;o++)r[o]!==t&&n.push(r[o]);n.length?this._fns[e]=n:delete this._fns[e]},e},Hi=function(e,t){var n="000000000"+e;return n.substr(n.length-t)},Vi="object"==typeof window?window:self,$i=Object.keys(Vi).length,Wi=navigator.mimeTypes?navigator.mimeTypes.length:0,qi=Hi((Wi+navigator.userAgent.length).toString(36)+$i.toString(36),4),Gi=function(){return qi},Ki="undefined"!=typeof window&&(window.crypto||window.msCrypto)||"undefined"!=typeof self&&self.crypto;if(Ki){var Yi=Math.pow(2,32)-1;zi=function(){return Math.abs(Ki.getRandomValues(new Uint32Array(1))[0]/Yi)}}else zi=Math.random;var Xi=zi,Zi=0,Ji=Math.pow(36,4);function Qi(){return Hi((Xi()*Ji<<0).toString(36),4)}function ea(){return Zi=Zi<Ji?Zi:0,++Zi-1}function ta(){return"c"+(new Date).getTime().toString(36)+Hi(ea().toString(36),4)+Gi()+(Qi()+Qi())}ta.slug=function(){var e=(new Date).getTime().toString(36),t=ea().toString(36).slice(-4),n=Gi().slice(0,1)+Gi().slice(-1),r=Qi().slice(-2);return e.slice(-2)+t+n+r},ta.isCuid=function(e){return"string"==typeof e&&!!e.startsWith("c")},ta.isSlug=function(e){if("string"!=typeof e)return!1;var t=e.length;return t>=7&&t<=10},ta.fingerprint=Gi;var na=ta,ra=function(e){if("number"!=typeof e||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var r=Math.min(Math.floor(Math.log(e)/Math.log(1024)),n.length-1);e=Number(e/Math.pow(1024,r));var o=n[r];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function oa(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}oa.prototype.match=function(e){var t,n,r=!0,o=this.parts,i=o.length;if("string"==typeof e||e instanceof String)if(this.hasWild||this.text==e){for(n=(e||"").split(this.separator),t=0;r&&t<i;t++)"*"!==o[t]&&(r=t<n.length&&o[t]===n[t]);r=r&&n}else r=!1;else if("function"==typeof e.splice)for(r=[],t=e.length;t--;)this.match(e[t])&&(r[r.length]=e[t]);else if("object"==typeof e)for(var a in r={},e)this.match(a)&&(r[a]=e[a]);return r};var ia=/[\/\+\.]/,aa=function(e,t){function n(t){var n=function(e,t,n){var r=new oa(e,n||/[\/\.]/);return void 0!==t?r.match(t):r}(t,e,ia);return n&&n.length>=2}return t?n(t.split(";")[0]):n};function sa(){return(sa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ua=function(){function e(){this.state={},this.callbacks=[]}var t=e.prototype;return t.getState=function(){return this.state},t.setState=function(e){var t=sa({},this.state),n=sa({},this.state,e);this.state=n,this._publish(t,n,e)},t.subscribe=function(e){var t=this;return this.callbacks.push(e),function(){t.callbacks.splice(t.callbacks.indexOf(e),1)}},t._publish=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.callbacks.forEach((function(e){e.apply(void 0,t)}))},e}();ua.VERSION="1.2.7";var la=function(e){var t=e.lastIndexOf(".");return-1===t||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},ca={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function fa(e){var t="";return e.replace(/[^A-Z0-9]/gi,(function(e){return t+="-"+function(e){return e.charCodeAt(0).toString(32)}(e),"/"}))+t}var da=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},pa=function(e){if(null==e&&(e="undefined"!=typeof navigator?navigator.userAgent:null),!e)return!0;var t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;var n=t[1].split("."),r=n[0],o=n[1];return r=parseInt(r,10),o=parseInt(o,10),r<15||15===r&&o<15063||(r>18||18===r&&o>=18218)},ha=function(){var e=new Date;return ga(e.getHours().toString())+":"+ga(e.getMinutes().toString())+":"+ga(e.getSeconds().toString())};function ga(e){return 2!==e.length?0+e:e}var va={justErrorsLogger:{debug:function(){},warn:function(){},error:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).error.apply(e,["[Uppy] ["+ha()+"]"].concat(n))}},debugLogger:{debug:function(){for(var e=console.debug||console.log,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.call.apply(e,[console,"[Uppy] ["+ha()+"]"].concat(n))},warn:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).warn.apply(e,["[Uppy] ["+ha()+"]"].concat(n))},error:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).error.apply(e,["[Uppy] ["+ha()+"]"].concat(n))}}};function ya(){}var ma={},ba=[],wa=[];function Sa(e,t){var n,r,o,i,a=wa;for(i=arguments.length;i-- >2;)ba.push(arguments[i]);for(t&&null!=t.children&&(ba.length||ba.push(t.children),delete t.children);ba.length;)if((r=ba.pop())&&void 0!==r.pop)for(i=r.length;i--;)ba.push(r[i]);else"boolean"==typeof r&&(r=null),(o="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(o=!1)),o&&n?a[a.length-1]+=r:a===wa?a=[r]:a.push(r),n=o;var s=new ya;return s.nodeName=e,s.children=a,s.attributes=null==t?void 0:t,s.key=null==t?void 0:t.key,void 0!==ma.vnode&&ma.vnode(s),s}function xa(e,t){for(var n in t)e[n]=t[n];return e}var Ea="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function Oa(e,t){return Sa(e.nodeName,xa(xa({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}var ka=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,Ta=[];function Aa(e){!e._dirty&&(e._dirty=!0)&&1==Ta.push(e)&&(ma.debounceRendering||Ea)(_a)}function _a(){var e,t=Ta;for(Ta=[];e=t.pop();)e._dirty&&Ka(e)}function Pa(e,t,n){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&ja(e,t.nodeName):n||e._componentConstructor===t.nodeName}function ja(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function Ca(e){var t=xa({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function Na(e){var t=e.parentNode;t&&t.removeChild(e)}function La(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)n&&n(null),r&&r(e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===ka.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,Ia,a):e.removeEventListener(t,Ia,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e)!function(e,t,n){try{e[t]=n}catch(e){}}(e,t,null==r?"":r),null!=r&&!1!==r||e.removeAttribute(t);else{var s=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function Ia(e){return this._listeners[e.type](ma.event&&ma.event(e)||e)}var Ra=[],Ma=0,Fa=!1,Da=!1;function za(){for(var e;e=Ra.pop();)ma.afterMount&&ma.afterMount(e),e.componentDidMount&&e.componentDidMount()}function Ba(e,t,n,r,o,i){Ma++||(Fa=null!=o&&void 0!==o.ownerSVGElement,Da=null!=e&&!("__preactattr_"in e));var a=Ua(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--Ma||(Da=!1,i||za()),a}function Ua(e,t,n,r,o){var i=e,a=Fa;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),Ha(e,!0))),i.__preactattr_=!0,i;var s,u,l=t.nodeName;if("function"==typeof l)return function(e,t,n,r){var o=e&&e._component,i=o,a=e,s=o&&e._componentConstructor===t.nodeName,u=s,l=Ca(t);for(;o&&!u&&(o=o._parentComponent);)u=o.constructor===t.nodeName;o&&u&&(!r||o._component)?(Ga(o,l,3,n,r),e=o.base):(i&&!s&&(Ya(i),e=a=null),o=Wa(t.nodeName,l,n),e&&!o.nextBase&&(o.nextBase=e,a=null),Ga(o,l,1,n,r),e=o.base,a&&e!==a&&(a._component=null,Ha(a,!1)));return e}(e,t,n,r);if(Fa="svg"===l||"foreignObject"!==l&&Fa,l=String(l),(!e||!ja(e,l))&&(s=l,(u=Fa?document.createElementNS("http://www.w3.org/2000/svg",s):document.createElement(s)).normalizedNodeName=s,i=u,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),Ha(e,!0)}var c=i.firstChild,f=i.__preactattr_,d=t.children;if(null==f){f=i.__preactattr_={};for(var p=i.attributes,h=p.length;h--;)f[p[h].name]=p[h].value}return!Da&&d&&1===d.length&&"string"==typeof d[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=d[0]&&(c.nodeValue=d[0]):(d&&d.length||null!=c)&&function(e,t,n,r,o){var i,a,s,u,l,c=e.childNodes,f=[],d={},p=0,h=0,g=c.length,v=0,y=t?t.length:0;if(0!==g)for(var m=0;m<g;m++){var b=c[m],w=b.__preactattr_;null!=(S=y&&w?b._component?b._component.__key:w.key:null)?(p++,d[S]=b):(w||(void 0!==b.splitText?!o||b.nodeValue.trim():o))&&(f[v++]=b)}if(0!==y)for(m=0;m<y;m++){var S;if(l=null,null!=(S=(u=t[m]).key))p&&void 0!==d[S]&&(l=d[S],d[S]=void 0,p--);else if(!l&&h<v)for(i=h;i<v;i++)if(void 0!==f[i]&&Pa(a=f[i],u,o)){l=a,f[i]=void 0,i===v-1&&v--,i===h&&h++;break}l=Ua(l,u,n,r),s=c[m],l&&l!==e&&l!==s&&(null==s?e.appendChild(l):l===s.nextSibling?Na(s):e.insertBefore(l,s))}if(p)for(var m in d)void 0!==d[m]&&Ha(d[m],!1);for(;h<=v;)void 0!==(l=f[v--])&&Ha(l,!1)}(i,d,n,r,Da||null!=f.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||La(e,r,n[r],n[r]=void 0,Fa);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||La(e,r,n[r],n[r]=t[r],Fa)}(i,t.attributes,f),Fa=a,i}function Ha(e,t){var n=e._component;n?Ya(n):(null!=e.__preactattr_&&e.__preactattr_.ref&&e.__preactattr_.ref(null),!1!==t&&null!=e.__preactattr_||Na(e),Va(e))}function Va(e){for(e=e.lastChild;e;){var t=e.previousSibling;Ha(e,!0),e=t}}var $a={};function Wa(e,t,n){var r,o=$a[e.name];if(e.prototype&&e.prototype.render?(r=new e(t,n),Xa.call(r,t,n)):((r=new Xa(t,n)).constructor=e,r.render=qa),o)for(var i=o.length;i--;)if(o[i].constructor===e){r.nextBase=o[i].nextBase,o.splice(i,1);break}return r}function qa(e,t,n){return this.constructor(e,n)}function Ga(e,t,n,r,o){e._disable||(e._disable=!0,(e.__ref=t.ref)&&delete t.ref,(e.__key=t.key)&&delete t.key,!e.base||o?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===ma.syncComponentUpdates&&e.base?Aa(e):Ka(e,1,o)),e.__ref&&e.__ref(e))}function Ka(e,t,n,r){if(!e._disable){var o,i,a,s=e.props,u=e.state,l=e.context,c=e.prevProps||s,f=e.prevState||u,d=e.prevContext||l,p=e.base,h=e.nextBase,g=p||h,v=e._component,y=!1;if(p&&(e.props=c,e.state=f,e.context=d,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(s,u,l)?y=!0:e.componentWillUpdate&&e.componentWillUpdate(s,u,l),e.props=s,e.state=u,e.context=l),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!y){o=e.render(s,u,l),e.getChildContext&&(l=xa(xa({},l),e.getChildContext()));var m,b,w=o&&o.nodeName;if("function"==typeof w){var S=Ca(o);(i=v)&&i.constructor===w&&S.key==i.__key?Ga(i,S,1,l,!1):(m=i,e._component=i=Wa(w,S,l),i.nextBase=i.nextBase||h,i._parentComponent=e,Ga(i,S,0,l,!1),Ka(i,1,n,!0)),b=i.base}else a=g,(m=v)&&(a=e._component=null),(g||1===t)&&(a&&(a._component=null),b=Ba(a,o,l,n||!p,g&&g.parentNode,!0));if(g&&b!==g&&i!==v){var x=g.parentNode;x&&b!==x&&(x.replaceChild(b,g),m||(g._component=null,Ha(g,!1)))}if(m&&Ya(m),e.base=b,b&&!r){for(var E=e,O=e;O=O._parentComponent;)(E=O).base=b;b._component=E,b._componentConstructor=E.constructor}}if(!p||n?Ra.unshift(e):y||(e.componentDidUpdate&&e.componentDidUpdate(c,f,d),ma.afterUpdate&&ma.afterUpdate(e)),null!=e._renderCallbacks)for(;e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);Ma||r||za()}}function Ya(e){ma.beforeUnmount&&ma.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?Ya(n):t&&(t.__preactattr_&&t.__preactattr_.ref&&t.__preactattr_.ref(null),e.nextBase=t,Na(t),function(e){var t=e.constructor.name;($a[t]||($a[t]=[])).push(e)}(e),Va(t)),e.__ref&&e.__ref(null)}function Xa(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{}}function Za(e,t,n){return Ba(n,e,{},!1,t,!1)}xa(Xa.prototype,{setState:function(e,t){var n=this.state;this.prevState||(this.prevState=xa({},n)),xa(n,"function"==typeof e?e(n,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),Aa(this)},forceUpdate:function(e){e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),Ka(this,2)},render:function(){}});var Ja={h:Sa,createElement:Sa,cloneElement:Oa,Component:Xa,render:Za,rerender:_a,options:ma},Qa=function(e,t){return void 0===t&&(t=document),"string"==typeof e?t.querySelector(e):(n=e)&&"object"==typeof n&&n.nodeType===Node.ELEMENT_NODE?e:void 0;var n},es=o(Object.freeze({__proto__:null,default:Ja,h:Sa,createElement:Sa,cloneElement:Oa,Component:Xa,render:Za,rerender:_a,options:ma}));function ts(){return(ts=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var ns=function(){function e(e,t){this.uppy=e,this.opts=t||{},this.update=this.update.bind(this),this.mount=this.mount.bind(this),this.install=this.install.bind(this),this.uninstall=this.uninstall.bind(this)}var t=e.prototype;return t.getPluginState=function(){return this.uppy.getState().plugins[this.id]||{}},t.setPluginState=function(e){var t,n=this.uppy.getState().plugins;this.uppy.setState({plugins:ts({},n,(t={},t[this.id]=ts({},n[this.id],e),t))})},t.setOptions=function(e){this.opts=ts({},this.opts,e),this.setPluginState()},t.update=function(e){void 0!==this.el&&this._updateUI&&this._updateUI(e)},t.afterUpdate=function(){},t.onMount=function(){},t.mount=function(t,n){var r,o=this,i=n.id,a=Qa(t);if(a)return this.isTargetDOMEl=!0,this.rerender=function(e){o.uppy.getPlugin(o.id)&&(o.el=es.render(o.render(e),a,o.el),o.afterUpdate())},this._updateUI=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=o,t||(t=Promise.resolve().then((function(){return t=null,e.apply(void 0,n)}))),t}}(this.rerender),this.uppy.log("Installing "+i+" to a DOM element '"+t+"'"),this.opts.replaceTargetContent&&(a.innerHTML=""),this.el=es.render(this.render(this.uppy.getState()),a),this.onMount(),this.el;if("object"==typeof t&&t instanceof e)r=t;else if("function"==typeof t){var s=t;this.uppy.iteratePlugins((function(e){if(e instanceof s)return r=e,!1}))}if(r)return this.uppy.log("Installing "+i+" to "+r.id),this.parent=r,this.el=r.addTarget(n),this.onMount(),this.el;this.uppy.log("Not installing "+i);var u="Invalid target option given to "+i+".";throw u+="function"==typeof t?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(u)},t.render=function(e){throw new Error("Extend the render method to add your plugin to a DOM element")},t.addTarget=function(e){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")},t.unmount=function(){this.isTargetDOMEl&&this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},t.install=function(){},t.uninstall=function(){this.unmount()},e}();function rs(){return(rs=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function is(e){var t="function"==typeof Map?new Map:void 0;return(is=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return as(e,arguments,ls(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),us(n,e)})(e)}function as(e,t,n){return(as=ss()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&us(o,n.prototype),o}).apply(null,arguments)}function ss(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function us(e,t){return(us=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ls(e){return(ls=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cs=va.justErrorsLogger,fs=va.debugLogger,ds="1.19.2",ps=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).isRestriction=!0,t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,us(t,n),r}(is(Error)),hs=function(){function e(e){var t=this;this.defaultLocale={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize2:"%{backwardsCompat} %{size}",exceedsSize:"%{file} exceeds maximum allowed size of",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noNewAlreadyUploading:"Cannot add new files: already uploading",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},selectAllFilesFromFolderNamed:"Select all files from folder %{name}",unselectAllFilesFromFolderNamed:"Unselect all files from folder %{name}",selectFileNamed:"Select file %{name}",unselectFileNamed:"Unselect file %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}};var n={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null},meta:{},onBeforeFileAdded:function(e){return e},onBeforeUpload:function(e){return e},store:new ua,logger:cs,infoTimeout:5e3};if(this.opts=rs({},n,e,{restrictions:rs({},n.restrictions,e&&e.restrictions)}),e&&e.logger&&e.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):e&&e.debug&&(this.opts.logger=fs),this.log("Using Core v"+this.constructor.VERSION),this.opts.restrictions.allowedFileTypes&&null!==this.opts.restrictions.allowedFileTypes&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.plugins={},this.getState=this.getState.bind(this),this.getPlugin=this.getPlugin.bind(this),this.setFileMeta=this.setFileMeta.bind(this),this.setFileState=this.setFileState.bind(this),this.log=this.log.bind(this),this.info=this.info.bind(this),this.hideInfo=this.hideInfo.bind(this),this.addFile=this.addFile.bind(this),this.removeFile=this.removeFile.bind(this),this.pauseResume=this.pauseResume.bind(this),this.validateRestrictions=this.validateRestrictions.bind(this),this.calculateProgress=Br(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.updateOnlineStatus=this.updateOnlineStatus.bind(this),this.resetProgress=this.resetProgress.bind(this),this.pauseAll=this.pauseAll.bind(this),this.resumeAll=this.resumeAll.bind(this),this.retryAll=this.retryAll.bind(this),this.cancelAll=this.cancelAll.bind(this),this.retryUpload=this.retryUpload.bind(this),this.upload=this.upload.bind(this),this.emitter=Ui(),this.on=this.on.bind(this),this.off=this.off.bind(this),this.once=this.emitter.once.bind(this.emitter),this.emit=this.emitter.emit.bind(this.emitter),this.preProcessors=[],this.uploaders=[],this.postProcessors=[],this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:pa(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:rs({},this.opts.meta),info:{isHidden:!0,type:"info",message:""},recoveredState:null}),this.storeUnsubscribe=this.store.subscribe((function(e,n,r){t.emit("state-update",e,n,r),t.updateAll(n)})),this.opts.debug&&"undefined"!=typeof window&&(window[this.opts.id]=this),this.addListeners()}var t,n,r,o=e.prototype;return o.on=function(e,t){return this.emitter.on(e,t),this},o.off=function(e,t){return this.emitter.off(e,t),this},o.updateAll=function(e){this.iteratePlugins((function(t){t.update(e)}))},o.setState=function(e){this.store.setState(e)},o.getState=function(){return this.store.getState()},o.setFileState=function(e,t){var n;if(!this.getState().files[e])throw new Error("Can’t set state for "+e+" (the file could have been removed)");this.setState({files:rs({},this.getState().files,(n={},n[e]=rs({},this.getState().files[e],t),n))})},o.i18nInit=function(){this.translator=new Bi([this.defaultLocale,this.opts.locale]),this.locale=this.translator.locale,this.i18n=this.translator.translate.bind(this.translator),this.i18nArray=this.translator.translateArray.bind(this.translator)},o.setOptions=function(e){this.opts=rs({},this.opts,e,{restrictions:rs({},this.opts.restrictions,e&&e.restrictions)}),e.meta&&this.setMeta(e.meta),this.i18nInit(),e.locale&&this.iteratePlugins((function(e){e.setOptions()})),this.setState()},o.resetProgress=function(){var e={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},t=rs({},this.getState().files),n={};Object.keys(t).forEach((function(r){var o=rs({},t[r]);o.progress=rs({},o.progress,e),n[r]=o})),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")},o.addPreProcessor=function(e){this.preProcessors.push(e)},o.removePreProcessor=function(e){var t=this.preProcessors.indexOf(e);-1!==t&&this.preProcessors.splice(t,1)},o.addPostProcessor=function(e){this.postProcessors.push(e)},o.removePostProcessor=function(e){var t=this.postProcessors.indexOf(e);-1!==t&&this.postProcessors.splice(t,1)},o.addUploader=function(e){this.uploaders.push(e)},o.removeUploader=function(e){var t=this.uploaders.indexOf(e);-1!==t&&this.uploaders.splice(t,1)},o.setMeta=function(e){var t=rs({},this.getState().meta,e),n=rs({},this.getState().files);Object.keys(n).forEach((function(t){n[t]=rs({},n[t],{meta:rs({},n[t].meta,e)})})),this.log("Adding metadata:"),this.log(e),this.setState({meta:t,files:n})},o.setFileMeta=function(e,t){var n=rs({},this.getState().files);if(n[e]){var r=rs({},n[e].meta,t);n[e]=rs({},n[e],{meta:r}),this.setState({files:n})}else this.log("Was trying to set metadata for a file that has been removed: ",e)},o.getFile=function(e){return this.getState().files[e]},o.getFiles=function(){var e=this.getState().files;return Object.keys(e).map((function(t){return e[t]}))},o.validateRestrictions=function(e,t){try{return this.checkRestrictions(e,t),{result:!0}}catch(e){return{result:!1,reason:e.message}}},o.checkRestrictions=function(e,t){void 0===t&&(t=this.getFiles());var n=this.opts.restrictions,r=n.maxFileSize,o=n.minFileSize,i=n.maxTotalFileSize,a=n.maxNumberOfFiles,s=n.allowedFileTypes;if(a&&t.length+1>a)throw new ps(""+this.i18n("youCanOnlyUploadX",{smart_count:a}));if(s&&!s.some((function(t){return t.indexOf("/")>-1?!!e.type&&aa(e.type.replace(/;.*?$/,""),t):!("."!==t[0]||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()}))){var u=s.join(", ");throw new ps(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(i&&null!=e.size){var l=0;if(l+=e.size,t.forEach((function(e){l+=e.size})),l>i)throw new ps(this.i18n("exceedsSize2",{backwardsCompat:this.i18n("exceedsSize"),size:ra(i),file:e.name}))}if(r&&null!=e.size&&e.size>r)throw new ps(this.i18n("exceedsSize2",{backwardsCompat:this.i18n("exceedsSize"),size:ra(r),file:e.name}));if(o&&null!=e.size&&e.size<o)throw new ps(this.i18n("inferiorSize",{size:ra(o)}))},o.checkMinNumberOfFiles=function(e){var t=this.opts.restrictions.minNumberOfFiles;if(Object.keys(e).length<t)throw new ps(""+this.i18n("youHaveToAtLeastSelectX",{smart_count:t}))},o.showOrLogErrorAndThrow=function(e,t){var n=void 0===t?{}:t,r=n.showInformer,o=void 0===r||r,i=n.file,a=void 0===i?null:i,s=n.throwErr,u=void 0===s||s,l="object"==typeof e?e.message:e,c="object"==typeof e&&e.details?e.details:"",f=l;if(c&&(f+=" "+c),e.isRestriction?(this.log(f),this.emit("restriction-failed",a,e)):this.log(f,"error"),o&&this.info({message:l,details:c},"error",this.opts.infoTimeout),u)throw"object"==typeof e?e:new Error(e)},o.assertNewUploadAllowed=function(e){!1===this.getState().allowNewUpload&&this.showOrLogErrorAndThrow(new ps(this.i18n("noNewAlreadyUploading")),{file:e})},o.checkAndCreateFileStateObject=function(e,t){var n=function(e){var t=e.name?la(e.name).extension:null;return t=t?t.toLowerCase():null,e.type?e.type:t&&ca[t]?ca[t]:"application/octet-stream"}(t),r=t;r.type=n;var o,i=this.opts.onBeforeFileAdded(r,e);!1===i&&this.showOrLogErrorAndThrow(new ps("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,file:r}),"object"==typeof i&&i&&(r=i),o=r.name?r.name:"image"===n.split("/")[0]?n.split("/")[0]+"."+n.split("/")[1]:"noname";var a=la(o).extension,s=r.isRemote||!1,u=function(e){var t="uppy";return"string"==typeof e.name&&(t+="-"+fa(e.name.toLowerCase())),void 0!==e.type&&(t+="-"+e.type),e.meta&&"string"==typeof e.meta.relativePath&&(t+="-"+fa(e.meta.relativePath.toLowerCase())),void 0!==e.data.size&&(t+="-"+e.data.size),void 0!==e.data.lastModified&&(t+="-"+e.data.lastModified),t}(r);e[u]&&!e[u].isGhost&&this.showOrLogErrorAndThrow(new ps(this.i18n("noDuplicates",{fileName:o})),{file:r});var l=r.meta||{};l.name=o,l.type=n;var c=Number.isFinite(r.data.size)?r.data.size:null,f={source:r.source||"",id:u,name:o,extension:a||"",meta:rs({},this.getState().meta,l),type:n,data:r.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:c,uploadComplete:!1,uploadStarted:null},size:c,isRemote:s,remote:r.remote||"",preview:r.preview};try{var d=Object.keys(e).map((function(t){return e[t]}));this.checkRestrictions(f,d)}catch(e){this.showOrLogErrorAndThrow(e,{file:f})}return f},o.startIfAutoProceed=function(){var e=this;this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout((function(){e.scheduledAutoProceed=null,e.upload().catch((function(t){t.isRestriction||e.log(t.stack||t.message||t)}))}),4))},o.addFile=function(e){var t;this.assertNewUploadAllowed(e);var n=this.getState().files,r=this.checkAndCreateFileStateObject(n,e);return n[r.id]&&n[r.id].isGhost&&(r=rs({},n[r.id],{data:e.data,isGhost:!1}),this.log("Replaced the blob in the restored ghost file: "+r.name+", "+r.id)),this.setState({files:rs({},n,(t={},t[r.id]=r,t))}),this.emit("file-added",r),this.emit("files-added",[r]),this.log("Added file: "+r.name+", "+r.id+", mime type: "+r.type),this.startIfAutoProceed(),r.id},o.addFiles=function(e){var t=this;this.assertNewUploadAllowed();for(var n=rs({},this.getState().files),r=[],o=[],i=0;i<e.length;i++)try{var a=this.checkAndCreateFileStateObject(n,e[i]);n[a.id]&&n[a.id].isGhost&&(a=rs({},n[a.id],{data:e[i].data,isGhost:!1}),this.log("Replaced blob in a ghost file: "+a.name+", "+a.id)),n[a.id]=a,r.push(a)}catch(u){u.isRestriction||o.push(u)}if(this.setState({files:n}),r.forEach((function(e){t.emit("file-added",e)})),this.emit("files-added",r),r.length>5?this.log("Added batch of "+r.length+" files"):Object.keys(r).forEach((function(e){t.log("Added file: "+r[e].name+"\n id: "+r[e].id+"\n type: "+r[e].type)})),r.length>0&&this.startIfAutoProceed(),o.length>0){var s="Multiple errors occurred while adding files:\n";if(o.forEach((function(e){s+="\n * "+e.message})),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:s},"error",this.opts.infoTimeout),"function"==typeof AggregateError)throw new AggregateError(o,s);var u=new Error(s);throw u.errors=o,u}},o.removeFiles=function(e,t){var n=this,r=this.getState(),o=r.files,i=r.currentUploads,a=rs({},o),s=rs({},i),u=Object.create(null);function l(e){return void 0===u[e]}e.forEach((function(e){o[e]&&(u[e]=o[e],delete a[e])})),Object.keys(s).forEach((function(e){var t=i[e].fileIDs.filter(l);0!==t.length?s[e]=rs({},i[e],{fileIDs:t}):delete s[e]}));var c={currentUploads:s,files:a};0===Object.keys(a).length&&(c.allowNewUpload=!0,c.error=null,c.recoveredState=null),this.setState(c),this.calculateTotalProgress();var f=Object.keys(u);f.forEach((function(e){n.emit("file-removed",u[e],t)})),f.length>5?this.log("Removed "+f.length+" files"):this.log("Removed files: "+f.join(", "))},o.removeFile=function(e,t){void 0===t&&(t=null),this.removeFiles([e],t)},o.pauseResume=function(e){if(this.getState().capabilities.resumableUploads&&!this.getFile(e).uploadComplete){var t=!(this.getFile(e).isPaused||!1);return this.setFileState(e,{isPaused:t}),this.emit("upload-pause",e,t),t}},o.pauseAll=function(){var e=rs({},this.getState().files);Object.keys(e).filter((function(t){return!e[t].progress.uploadComplete&&e[t].progress.uploadStarted})).forEach((function(t){var n=rs({},e[t],{isPaused:!0});e[t]=n})),this.setState({files:e}),this.emit("pause-all")},o.resumeAll=function(){var e=rs({},this.getState().files);Object.keys(e).filter((function(t){return!e[t].progress.uploadComplete&&e[t].progress.uploadStarted})).forEach((function(t){var n=rs({},e[t],{isPaused:!1,error:null});e[t]=n})),this.setState({files:e}),this.emit("resume-all")},o.retryAll=function(){var e=rs({},this.getState().files),t=Object.keys(e).filter((function(t){return e[t].error}));if(t.forEach((function(t){var n=rs({},e[t],{isPaused:!1,error:null});e[t]=n})),this.setState({files:e,error:null}),this.emit("retry-all",t),0===t.length)return Promise.resolve({successful:[],failed:[]});var n=this.createUpload(t,{forceAllowNewUpload:!0});return this.runUpload(n)},o.cancelAll=function(){this.emit("cancel-all");var e=this.getState().files,t=Object.keys(e);t.length&&this.removeFiles(t,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})},o.retryUpload=function(e){this.setFileState(e,{error:null,isPaused:!1}),this.emit("upload-retry",e);var t=this.createUpload([e],{forceAllowNewUpload:!0});return this.runUpload(t)},o.reset=function(){this.cancelAll()},o.logout=function(){this.iteratePlugins((function(e){e.provider&&e.provider.logout&&e.provider.logout()}))},o.calculateProgress=function(e,t){if(this.getFile(e.id)){var n=Number.isFinite(t.bytesTotal)&&t.bytesTotal>0;this.setFileState(e.id,{progress:rs({},this.getFile(e.id).progress,{bytesUploaded:t.bytesUploaded,bytesTotal:t.bytesTotal,percentage:n?Math.round(t.bytesUploaded/t.bytesTotal*100):0})}),this.calculateTotalProgress()}else this.log("Not setting progress for a file that has been removed: "+e.id)},o.calculateTotalProgress=function(){var e=this.getFiles().filter((function(e){return e.progress.uploadStarted||e.progress.preprocess||e.progress.postprocess}));if(0===e.length)return this.emit("progress",0),void this.setState({totalProgress:0});var t=e.filter((function(e){return null!=e.progress.bytesTotal})),n=e.filter((function(e){return null==e.progress.bytesTotal}));if(0!==t.length){var r=t.reduce((function(e,t){return e+t.progress.bytesTotal}),0),o=r/t.length;r+=o*n.length;var i=0;t.forEach((function(e){i+=e.progress.bytesUploaded})),n.forEach((function(e){i+=o*(e.progress.percentage||0)/100}));var a=0===r?0:Math.round(i/r*100);a>100&&(a=100),this.setState({totalProgress:a}),this.emit("progress",a)}else{var s=100*e.length,u=n.reduce((function(e,t){return e+t.progress.percentage}),0),l=Math.round(u/s*100);this.setState({totalProgress:l})}},o.addListeners=function(){var e=this,t=function(t,n,r){var o=t.message||"Unknown error";t.details&&(o+=" "+t.details),e.setState({error:o}),null!=n&&e.setFileState(n.id,{error:o,response:r})};this.on("error",t),this.on("upload-error",(function(n,r,o){if(t(r,n,o),"object"==typeof r&&r.message){var i=new Error(r.message);i.details=r.message,r.details&&(i.details+=" "+r.details),i.message=e.i18n("failedToUpload",{file:n.name}),e.showOrLogErrorAndThrow(i,{throwErr:!1})}else e.showOrLogErrorAndThrow(r,{throwErr:!1})})),this.on("upload",(function(){e.setState({error:null})})),this.on("upload-started",(function(t){e.getFile(t.id)?e.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(function(t,n){if(e.getFile(t.id)){var r=e.getFile(t.id).progress;e.setFileState(t.id,{progress:rs({},r,{postprocess:e.postProcessors.length>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:r.bytesTotal}),response:n,uploadURL:n.uploadURL,isPaused:!1}),e.calculateTotalProgress()}else e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("preprocess-progress",(function(t,n){e.getFile(t.id)?e.setFileState(t.id,{progress:rs({},e.getFile(t.id).progress,{preprocess:n})}):e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("preprocess-complete",(function(t){if(e.getFile(t.id)){var n=rs({},e.getState().files);n[t.id]=rs({},n[t.id],{progress:rs({},n[t.id].progress)}),delete n[t.id].progress.preprocess,e.setState({files:n})}else e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("postprocess-progress",(function(t,n){e.getFile(t.id)?e.setFileState(t.id,{progress:rs({},e.getState().files[t.id].progress,{postprocess:n})}):e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("postprocess-complete",(function(t){if(e.getFile(t.id)){var n=rs({},e.getState().files);n[t.id]=rs({},n[t.id],{progress:rs({},n[t.id].progress)}),delete n[t.id].progress.postprocess,e.setState({files:n})}else e.log("Not setting progress for a file that has been removed: "+t.id)})),this.on("restored",(function(){e.calculateTotalProgress()})),"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("online",(function(){return e.updateOnlineStatus()})),window.addEventListener("offline",(function(){return e.updateOnlineStatus()})),setTimeout((function(){return e.updateOnlineStatus()}),3e3))},o.updateOnlineStatus=function(){void 0===window.navigator.onLine||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)},o.getID=function(){return this.opts.id},o.use=function(e,t){if("function"!=typeof e)throw new TypeError("Expected a plugin class, but got "+(null===e?"null":typeof e)+". Please verify that the plugin was imported and spelled correctly.");var n=new e(this,t),r=n.id;if(this.plugins[n.type]=this.plugins[n.type]||[],!r)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");var o=this.getPlugin(r);if(o){var i="Already found a plugin named '"+o.id+"'. Tried to use: '"+r+"'.\nUppy plugins must have unique `id` options. See https://uppy.io/docs/plugins/#id.";throw new Error(i)}return e.VERSION&&this.log("Using "+r+" v"+e.VERSION),this.plugins[n.type].push(n),n.install(),this},o.getPlugin=function(e){var t=null;return this.iteratePlugins((function(n){if(n.id===e)return t=n,!1})),t},o.iteratePlugins=function(e){var t=this;Object.keys(this.plugins).forEach((function(n){t.plugins[n].forEach(e)}))},o.removePlugin=function(e){var t;this.log("Removing plugin "+e.id),this.emit("plugin-remove",e),e.uninstall&&e.uninstall();var n=this.plugins[e.type].slice(),r=da(n,(function(t){return t.id===e.id}));-1!==r&&(n.splice(r,1),this.plugins[e.type]=n);var o={plugins:rs({},this.getState().plugins,(t={},t[e.id]=void 0,t))};this.setState(o)},o.close=function(){var e=this;this.log("Closing Uppy instance "+this.opts.id+": removing all files and uninstalling plugins"),this.reset(),this.storeUnsubscribe(),this.iteratePlugins((function(t){e.removePlugin(t)}))},o.info=function(e,t,n){void 0===t&&(t="info"),void 0===n&&(n=3e3);var r="object"==typeof e;this.setState({info:{isHidden:!1,type:t,message:r?e.message:e,details:r?e.details:null}}),this.emit("info-visible"),clearTimeout(this.infoTimeoutID),this.infoTimeoutID=0!==n?setTimeout(this.hideInfo,n):void 0},o.hideInfo=function(){var e=rs({},this.getState().info,{isHidden:!0});this.setState({info:e}),this.emit("info-hidden")},o.log=function(e,t){var n=this.opts.logger;switch(t){case"error":n.error(e);break;case"warning":n.warn(e);break;default:n.debug(e)}},o.run=function(){return this.log("Calling run() is no longer necessary.","warning"),this},o.restore=function(e){return this.log('Core: attempting to restore upload "'+e+'"'),this.getState().currentUploads[e]?this.runUpload(e):(this.removeUpload(e),Promise.reject(new Error("Nonexistent upload")))},o.createUpload=function(e,t){var n;void 0===t&&(t={});var r=t.forceAllowNewUpload,o=void 0!==r&&r,i=this.getState(),a=i.allowNewUpload,s=i.currentUploads;if(!a&&!o)throw new Error("Cannot create a new upload: already uploading.");var u=na();return this.emit("upload",{id:u,fileIDs:e}),this.setState({allowNewUpload:!1!==this.opts.allowMultipleUploads,currentUploads:rs({},s,(n={},n[u]={fileIDs:e,step:0,result:{}},n))}),u},o.getUpload=function(e){return this.getState().currentUploads[e]},o.addResultData=function(e,t){var n;if(this.getUpload(e)){var r=this.getState().currentUploads,o=rs({},r[e],{result:rs({},r[e].result,t)});this.setState({currentUploads:rs({},r,(n={},n[e]=o,n))})}else this.log("Not setting result for an upload that has been removed: "+e)},o.removeUpload=function(e){var t=rs({},this.getState().currentUploads);delete t[e],this.setState({currentUploads:t})},o.runUpload=function(e){var t=this,n=this.getState().currentUploads[e].step,r=[].concat(this.preProcessors,this.uploaders,this.postProcessors),o=Promise.resolve();return r.forEach((function(r,i){i<n||(o=o.then((function(){var n,o=t.getState().currentUploads,a=o[e];if(a){var s=rs({},a,{step:i});return t.setState({currentUploads:rs({},o,(n={},n[e]=s,n))}),r(s.fileIDs,e)}})).then((function(){return null})))})),o.catch((function(n){t.emit("error",n,e),t.removeUpload(e)})),o.then((function(){var n=t.getState().currentUploads[e];if(n){n.fileIDs.forEach((function(e){var n=t.getFile(e);n&&n.progress.postprocess&&t.emit("postprocess-complete",n)}));var r=n.fileIDs.map((function(e){return t.getFile(e)})),o=r.filter((function(e){return!e.error})),i=r.filter((function(e){return e.error}));t.addResultData(e,{successful:o,failed:i,uploadID:e})}})).then((function(){var n=t.getState().currentUploads;if(n[e]){var r=n[e].result;return t.emit("complete",r),t.removeUpload(e),r}})).then((function(n){return null==n&&t.log("Not setting result for an upload that has been removed: "+e),n}))},o.upload=function(){var e=this;this.plugins.uploader||this.log("No uploader type plugins are used","warning");var t=this.getState().files,n=this.opts.onBeforeUpload(t);return!1===n?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&"object"==typeof n&&(t=n,this.setState({files:t})),Promise.resolve().then((function(){return e.checkMinNumberOfFiles(t)})).catch((function(t){e.showOrLogErrorAndThrow(t)})).then((function(){var n=e.getState().currentUploads,r=Object.keys(n).reduce((function(e,t){return e.concat(n[t].fileIDs)}),[]),o=[];Object.keys(t).forEach((function(t){var n=e.getFile(t);n.progress.uploadStarted||-1!==r.indexOf(t)||o.push(n.id)}));var i=e.createUpload(o);return e.runUpload(i)})).catch((function(t){e.showOrLogErrorAndThrow(t,{showInformer:!1})})))},t=e,(n=[{key:"state",get:function(){return this.getState()}}])&&os(t.prototype,n),r&&os(t,r),e}();hs.VERSION=ds;var gs=function(e){return new hs(e)},vs=ns,ys=fs;function ms(e){var t="function"==typeof Map?new Map:void 0;return(ms=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return bs(e,arguments,xs(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ss(n,e)})(e)}function bs(e,t,n){return(bs=ws()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Ss(o,n.prototype),o}).apply(null,arguments)}function ws(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Ss(e,t){return(Ss=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xs(e){return(xs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}gs.Uppy=hs,gs.Plugin=vs,gs.debugLogger=ys;var Es=function(e){var t,n;function r(){var t;return(t=e.call(this,"Authorization required")||this).name="AuthError",t.isAuthError=!0,t}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Ss(t,n),r}(ms(Error));function Os(e){var t="function"==typeof Map?new Map:void 0;return(Os=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ks(e,arguments,_s(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),As(n,e)})(e)}function ks(e,t,n){return(ks=Ts()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&As(o,n.prototype),o}).apply(null,arguments)}function Ts(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function As(e,t){return(As=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _s(e){return(_s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ps,js,Cs=function(e){var t,n;function r(t,n){var r;return void 0===n&&(n=null),(r=e.call(this,"This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.\n\nSource error: ["+t+"]")||this).isNetworkError=!0,r.request=n,r}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,As(t,n),r}(Os(Error)),Ns=function(){return fetch.apply(void 0,arguments).catch((function(e){throw"AbortError"===e.name?e:new Cs(e)}))};function Ls(){return(Ls=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Rs=(js=Ps=function(){function e(e,t){this.uppy=e,this.opts=t,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}var t,n,r,o=e.prototype;return o.headers=function(){var e=this.opts.companionHeaders||this.opts.serverHeaders||{};return Promise.resolve(Ls({},this.defaultHeaders,e))},o._getPostResponseFunc=function(e){var t=this;return function(n){return e?n:t.onReceiveResponse(n)}},o.onReceiveResponse=function(e){var t,n=this.uppy.getState().companion||{},r=this.opts.companionUrl,o=e.headers;o.has("i-am")&&o.get("i-am")!==n[r]&&this.uppy.setState({companion:Ls({},n,(t={},t[r]=o.get("i-am"),t))});return e},o._getUrl=function(e){return/^(https?:|)\/\//.test(e)?e:this.hostname+"/"+e},o._json=function(e){if(401===e.status)throw new Es;if(e.status<200||e.status>300){var t="Failed request with status: "+e.status+". "+e.statusText;return e.json().then((function(e){throw t=e.message?t+" message: "+e.message:t,t=e.requestId?t+" request-Id: "+e.requestId:t,new Error(t)})).catch((function(){throw new Error(t)}))}return e.json()},o.preflight=function(e){var t=this;return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(this._getUrl(e),{method:"OPTIONS"}).then((function(e){return e.headers.has("access-control-allow-headers")&&(t.allowedHeaders=e.headers.get("access-control-allow-headers").split(",").map((function(e){return e.trim().toLowerCase()}))),t.preflightDone=!0,t.allowedHeaders.slice()})).catch((function(e){return t.uppy.log("[CompanionClient] unable to make preflight request "+e,"warning"),t.preflightDone=!0,t.allowedHeaders.slice()}))},o.preflightAndHeaders=function(e){var t=this;return Promise.all([this.preflight(e),this.headers()]).then((function(e){var n=e[0],r=e[1];return Object.keys(r).forEach((function(e){-1===n.indexOf(e.toLowerCase())&&(t.uppy.log("[CompanionClient] excluding unallowed header "+e),delete r[e])})),r}))},o.get=function(e,t){var n=this;return this.preflightAndHeaders(e).then((function(t){return Ns(n._getUrl(e),{method:"get",headers:t,credentials:n.opts.companionCookiesRule||"same-origin"})})).then(this._getPostResponseFunc(t)).then((function(e){return n._json(e)})).catch((function(t){return t.isAuthError||(t.message="Could not get "+n._getUrl(e)+". "+t.message),Promise.reject(t)}))},o.post=function(e,t,n){var r=this;return this.preflightAndHeaders(e).then((function(n){return Ns(r._getUrl(e),{method:"post",headers:n,credentials:r.opts.companionCookiesRule||"same-origin",body:JSON.stringify(t)})})).then(this._getPostResponseFunc(n)).then((function(e){return r._json(e)})).catch((function(t){return t.isAuthError||(t.message="Could not post "+r._getUrl(e)+". "+t.message),Promise.reject(t)}))},o.delete=function(e,t,n){var r=this;return this.preflightAndHeaders(e).then((function(n){return Ns(r.hostname+"/"+e,{method:"delete",headers:n,credentials:r.opts.companionCookiesRule||"same-origin",body:t?JSON.stringify(t):null})})).then(this._getPostResponseFunc(n)).then((function(e){return r._json(e)})).catch((function(t){return t.isAuthError||(t.message="Could not delete "+r._getUrl(e)+". "+t.message),Promise.reject(t)}))},t=e,(n=[{key:"hostname",get:function(){var e=this.uppy.getState().companion,t=this.opts.companionUrl;return(e&&e[t]?e[t]:t).replace(/\/$/,"")}},{key:"defaultHeaders",get:function(){return{Accept:"application/json","Content-Type":"application/json","Uppy-Versions":"@uppy/companion-client="+e.VERSION}}}])&&Is(t.prototype,n),r&&Is(t,r),e}(),Ps.VERSION="1.10.2",js),Ms=Object.prototype.hasOwnProperty,Fs=function e(t,n){var r=[];for(var o in t)if(Ms.call(t,o)){var i,a=t[o],s=encodeURIComponent(o);i="object"==typeof a?e(a,n?n+"["+s+"]":s):(n?n+"["+s+"]":s)+"="+encodeURIComponent(a),r.push(i)}return r.join("&")},Ds=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e},zs=Object.prototype.hasOwnProperty;function Bs(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function Us(e){try{return encodeURIComponent(e)}catch(e){return null}}var Hs={stringify:function(e,t){t=t||"";var n,r,o=[];for(r in"string"!=typeof t&&(t="?"),e)if(zs.call(e,r)){if((n=e[r])||null!=n&&!isNaN(n)||(n=""),r=Us(r),n=Us(n),null===r||null===n)continue;o.push(r+"="+n)}return o.length?t+o.join("&"):""},parse:function(e){for(var t,n=/([^=?#&]+)=?([^&]*)/g,r={};t=n.exec(e);){var o=Bs(t[1]),i=Bs(t[2]);null===o||null===i||o in r||(r[o]=i)}return r}},Vs=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,$s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,Ws=/^[a-zA-Z]:/,qs=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function Gs(e){return(e||"").toString().replace(qs,"")}var Ks=[["#","hash"],["?","query"],function(e,t){return Zs(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],Ys={hash:1,query:1};function Xs(e){var t,r=("undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{}).location||{},o={},i=typeof(e=e||r);if("blob:"===e.protocol)o=new Qs(unescape(e.pathname),{});else if("string"===i)for(t in o=new Qs(e,{}),Ys)delete o[t];else if("object"===i){for(t in e)t in Ys||(o[t]=e[t]);void 0===o.slashes&&(o.slashes=Vs.test(e.href))}return o}function Zs(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function Js(e,t){e=Gs(e),t=t||{};var n,r=$s.exec(e),o=r[1]?r[1].toLowerCase():"",i=!!r[2],a=!!r[3],s=0;return i?a?(n=r[2]+r[3]+r[4],s=r[2].length+r[3].length):(n=r[2]+r[4],s=r[2].length):a?(n=r[3]+r[4],s=r[3].length):n=r[4],"file:"===o?s>=2&&(n=n.slice(2)):Zs(o)?n=r[4]:o?i&&(n=n.slice(2)):s>=2&&Zs(t.protocol)&&(n=r[4]),{protocol:o,slashes:i||Zs(o),slashesCount:s,rest:n}}function Qs(e,t,n){if(e=Gs(e),!(this instanceof Qs))return new Qs(e,t,n);var r,o,i,a,s,u,l=Ks.slice(),c=typeof t,f=this,d=0;for("object"!==c&&"string"!==c&&(n=t,t=null),n&&"function"!=typeof n&&(n=Hs.parse),r=!(o=Js(e||"",t=Xs(t))).protocol&&!o.slashes,f.slashes=o.slashes||r&&t.slashes,f.protocol=o.protocol||t.protocol||"",e=o.rest,("file:"===o.protocol&&(2!==o.slashesCount||Ws.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!Zs(f.protocol)))&&(l[3]=[/(.*)/,"pathname"]);d<l.length;d++)"function"!=typeof(a=l[d])?(i=a[0],u=a[1],i!=i?f[u]=e:"string"==typeof i?~(s=e.indexOf(i))&&("number"==typeof a[2]?(f[u]=e.slice(0,s),e=e.slice(s+a[2])):(f[u]=e.slice(s),e=e.slice(0,s))):(s=i.exec(e))&&(f[u]=s[1],e=e.slice(0,s.index)),f[u]=f[u]||r&&a[3]&&t[u]||"",a[4]&&(f[u]=f[u].toLowerCase())):e=a(e,f);n&&(f.query=n(f.query)),r&&t.slashes&&"/"!==f.pathname.charAt(0)&&(""!==f.pathname||""!==t.pathname)&&(f.pathname=function(e,t){if(""===e)return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,o=n[r-1],i=!1,a=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),a++):a&&(0===r&&(i=!0),n.splice(r,1),a--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(f.pathname,t.pathname)),"/"!==f.pathname.charAt(0)&&Zs(f.protocol)&&(f.pathname="/"+f.pathname),Ds(f.port,f.protocol)||(f.host=f.hostname,f.port=""),f.username=f.password="",f.auth&&(a=f.auth.split(":"),f.username=a[0]||"",f.password=a[1]||""),f.origin="file:"!==f.protocol&&Zs(f.protocol)&&f.host?f.protocol+"//"+f.host:"null",f.href=f.toString()}Qs.prototype={set:function(e,t,n){var r=this;switch(e){case"query":"string"==typeof t&&t.length&&(t=(n||Hs.parse)(t)),r[e]=t;break;case"port":r[e]=t,Ds(t,r.protocol)?t&&(r.host=r.hostname+":"+t):(r.host=r.hostname,r[e]="");break;case"hostname":r[e]=t,r.port&&(t+=":"+r.port),r.host=t;break;case"host":r[e]=t,/:\d+$/.test(t)?(t=t.split(":"),r.port=t.pop(),r.hostname=t.join(":")):(r.hostname=t,r.port="");break;case"protocol":r.protocol=t.toLowerCase(),r.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";r[e]=t.charAt(0)!==o?o+t:t}else r[e]=t;break;default:r[e]=t}for(var i=0;i<Ks.length;i++){var a=Ks[i];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.origin="file:"!==r.protocol&&Zs(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r},toString:function(e){e&&"function"==typeof e||(e=Hs.stringify);var t,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var o=r+(n.slashes||Zs(n.protocol)?"//":"");return n.username&&(o+=n.username,n.password&&(o+=":"+n.password),o+="@"),o+=n.host+n.pathname,(t="object"==typeof n.query?e(n.query):n.query)&&(o+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(o+=n.hash),o}},Qs.extractProtocol=Js,Qs.location=Xs,Qs.trimLeft=Gs,Qs.qs=Hs;var eu=Qs,tu={setItem:function(e,t){return new Promise((function(n){localStorage.setItem(e,t),n()}))},getItem:function(e){return Promise.resolve(localStorage.getItem(e))},removeItem:function(e){return new Promise((function(t){localStorage.removeItem(e),t()}))}};function nu(){return(nu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ru(e,t){return(ru=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ou(e,t){return(ou=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var iu={RequestClient:Rs,Provider:function(e){var t,n;function r(t,n){var r;return(r=e.call(this,t,n)||this).provider=n.provider,r.id=r.provider,r.name=r.opts.name||function(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")}(r.id),r.pluginId=r.opts.pluginId,r.tokenKey="companion-"+r.pluginId+"-auth-token",r.companionKeysParams=r.opts.companionKeysParams,r.preAuthToken=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ru(t,n);var o=r.prototype;return o.headers=function(){var t=this;return Promise.all([e.prototype.headers.call(this),this.getAuthToken()]).then((function(e){var n=e[0],r=e[1],o={};return r&&(o["uppy-auth-token"]=r),t.companionKeysParams&&(o["uppy-credentials-params"]=btoa(JSON.stringify({params:t.companionKeysParams}))),nu({},n,o)}))},o.onReceiveResponse=function(t){t=e.prototype.onReceiveResponse.call(this,t);var n=this.uppy.getPlugin(this.pluginId),r=n.getPluginState().authenticated?401!==t.status:t.status<400;return n.setPluginState({authenticated:r}),t},o.setAuthToken=function(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)},o.getAuthToken=function(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)},o.authUrl=function(e){void 0===e&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken);var t=Fs(e);return t=t?"?"+t:t,this.hostname+"/"+this.id+"/connect"+t},o.fileUrl=function(e){return this.hostname+"/"+this.id+"/get/"+e},o.fetchPreAuthToken=function(){var e=this;return this.companionKeysParams?this.post(this.id+"/preauth/",{params:this.companionKeysParams}).then((function(t){e.preAuthToken=t.token})).catch((function(t){e.uppy.log("[CompanionClient] unable to fetch preAuthToken "+t,"warning")})):Promise.resolve()},o.list=function(e){return this.get(this.id+"/list/"+(e||""))},o.logout=function(){var e=this;return this.get(this.id+"/logout").then((function(t){return Promise.all([t,e.uppy.getPlugin(e.pluginId).storage.removeItem(e.tokenKey)])})).then((function(e){return e[0]}))},r.initPlugin=function(e,t,n){if(e.type="acquirer",e.files=[],n&&(e.opts=nu({},n,t)),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){var r=t.companionAllowedHosts;if(!("string"==typeof r||Array.isArray(r)||r instanceof RegExp))throw new TypeError(e.id+': the option "companionAllowedHosts" must be one of string, Array, RegExp');e.opts.companionAllowedHosts=r}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts="https://"+t.companionUrl.replace(/^\/\//,""):e.opts.companionAllowedHosts=new eu(t.companionUrl).origin;e.storage=e.opts.storage||tu},r}(Rs),SearchProvider:function(e){var t,n;function r(t,n){var r;return(r=e.call(this,t,n)||this).provider=n.provider,r.id=r.provider,r.name=r.opts.name||function(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join(" ")}(r.id),r.pluginId=r.opts.pluginId,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,ou(t,n);var o=r.prototype;return o.fileUrl=function(e){return this.hostname+"/search/"+this.id+"/get/"+e},o.search=function(e,t){return t=t?"&"+t:"",this.get("search/"+this.id+"/list?q="+encodeURIComponent(e)+t)},r}(Rs),Socket:function(){function e(e){this.opts=e,this._queued=[],this.isOpen=!1,this.emitter=Ui(),this._handleMessage=this._handleMessage.bind(this),this.close=this.close.bind(this),this.emit=this.emit.bind(this),this.on=this.on.bind(this),this.once=this.once.bind(this),this.send=this.send.bind(this),e&&!1===e.autoOpen||this.open()}var t=e.prototype;return t.open=function(){var e=this;this.socket=new WebSocket(this.opts.target),this.socket.onopen=function(t){for(e.isOpen=!0;e._queued.length>0&&e.isOpen;){var n=e._queued[0];e.send(n.action,n.payload),e._queued=e._queued.slice(1)}},this.socket.onclose=function(t){e.isOpen=!1},this.socket.onmessage=this._handleMessage},t.close=function(){this.socket&&this.socket.close()},t.send=function(e,t){this.isOpen?this.socket.send(JSON.stringify({action:e,payload:t})):this._queued.push({action:e,payload:t})},t.on=function(e,t){this.emitter.on(e,t)},t.emit=function(e,t){this.emitter.emit(e,t)},t.once=function(e,t){this.emitter.once(e,t)},t._handleMessage=function(e){try{var t=JSON.parse(e.data);this.emit(t.action,t.payload)}catch(e){console.log(e)}},e}()};var au=Br((function(e,t,n){var r=t.progress,o=t.bytesUploaded,i=t.bytesTotal;r&&(e.uppy.log("Upload progress: "+r),e.uppy.emit("upload-progress",n,{uploader:e,bytesUploaded:o,bytesTotal:i}))}),300,{leading:!0,trailing:!0}),su=function(){function e(e){this._events=[],this._emitter=e}var t=e.prototype;return t.on=function(e,t){return this._events.push([e,t]),this._emitter.on(e,t)},t.remove=function(){var e=this;this._events.forEach((function(t){var n=t[0],r=t[1];e._emitter.off(n,r)}))},e}(),uu=function(){function e(e,t){this._timeout=e,this._onTimedOut=t,this._isDone=!1,this._aliveTimer=null,this._onTimedOut=this._onTimedOut.bind(this)}var t=e.prototype;return t.progress=function(){this._isDone||this._timeout>0&&(this._aliveTimer&&clearTimeout(this._aliveTimer),this._aliveTimer=setTimeout(this._onTimedOut,this._timeout))},t.done=function(){this._aliveTimer&&(clearTimeout(this._aliveTimer),this._aliveTimer=null),this._isDone=!0},e}();function lu(){return new Error("Cancelled")}var cu=function(){function e(e){this.limit="number"!=typeof e||0===e?1/0:e,this.activeRequests=0,this.queuedHandlers=[]}var t=e.prototype;return t._call=function(e){var t=this;this.activeRequests+=1;var n,r=!1;try{n=e()}catch(e){throw this.activeRequests-=1,e}return{abort:function(){r||(r=!0,t.activeRequests-=1,n(),t._queueNext())},done:function(){r||(r=!0,t.activeRequests-=1,t._queueNext())}}},t._queueNext=function(){var e=this;Promise.resolve().then((function(){e._next()}))},t._next=function(){if(!(this.activeRequests>=this.limit)&&0!==this.queuedHandlers.length){var e=this.queuedHandlers.shift(),t=this._call(e.fn);e.abort=t.abort,e.done=t.done}},t._queue=function(e,t){var n=this;void 0===t&&(t={});var r={fn:e,priority:t.priority||0,abort:function(){n._dequeue(r)},done:function(){throw new Error("Cannot mark a queued request as done: this indicates a bug")}},o=da(this.queuedHandlers,(function(e){return r.priority>e.priority}));return-1===o?this.queuedHandlers.push(r):this.queuedHandlers.splice(o,0,r),r},t._dequeue=function(e){var t=this.queuedHandlers.indexOf(e);-1!==t&&this.queuedHandlers.splice(t,1)},t.run=function(e,t){return this.activeRequests<this.limit?this._call(e):this._queue(e,t)},t.wrapPromiseFunction=function(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a,s=new Promise((function(r,i){a=n.run((function(){var t,n;try{n=Promise.resolve(e.apply(void 0,o))}catch(e){n=Promise.reject(e)}return n.then((function(e){t?i(t):(a.done(),r(e))}),(function(e){t?i(t):(a.done(),i(e))})),function(){t=lu()}}),t)}));return s.abort=function(){a.abort()},s}},e}();var fu,du,pu=function(e){return!!e&&(0!==e.readyState&&4!==e.readyState||0===e.status)};function hu(e,t){return(hu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gu(){return(gu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var vu=iu.Provider,yu=iu.RequestClient,mu=iu.Socket;function bu(e,t){return t||(t=new Error("Upload error")),"string"==typeof t&&(t=new Error(t)),t instanceof Error||(t=gu(new Error("Upload error"),{data:t})),pu(e)?t=new Cs(t,e):(t.request=e,t)}function wu(e){return e.data.slice(0,e.data.size,e.meta.type)}var Su=(du=fu=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).type="uploader",r.id=r.opts.id||"XHRUpload",r.title="XHRUpload",r.defaultLocale={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};var o={formData:!0,fieldName:"files[]",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:0,withCredentials:!1,responseType:"",getResponseData:function(e,t){var n={};try{n=JSON.parse(e)}catch(e){console.log(e)}return n},getResponseError:function(e,t){var n=new Error("Upload error");return pu(t)&&(n=new Cs(n,t)),n},validateStatus:function(e,t,n){return e>=200&&e<300}};if(r.opts=gu({},o,n),r.i18nInit(),r.handleUpload=r.handleUpload.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r)),r.opts.__queue instanceof cu?r.requests=r.opts.__queue:r.requests=new cu(r.opts.limit),r.opts.bundle&&!r.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");return r.uploaderEvents=Object.create(null),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,hu(t,n);var o=r.prototype;return o.setOptions=function(t){e.prototype.setOptions.call(this,t),this.i18nInit()},o.i18nInit=function(){this.translator=new Bi([this.defaultLocale,this.uppy.locale,this.opts.locale]),this.i18n=this.translator.translate.bind(this.translator),this.setPluginState()},o.getOptions=function(e){var t=this.uppy.getState().xhrUpload,n=this.opts.headers,r=gu({},this.opts,t||{},e.xhrUpload||{},{headers:{}});return"function"==typeof n?r.headers=n(e):gu(r.headers,this.opts.headers),t&&gu(r.headers,t.headers),e.xhrUpload&&gu(r.headers,e.xhrUpload.headers),r},o.addMetadata=function(e,t,n){(Array.isArray(n.metaFields)?n.metaFields:Object.keys(t)).forEach((function(n){e.append(n,t[n])}))},o.createFormDataUpload=function(e,t){var n=new FormData;this.addMetadata(n,e.meta,t);var r=wu(e);return e.name?n.append(t.fieldName,r,e.meta.name):n.append(t.fieldName,r),n},o.createBundledUpload=function(e,t){var n=this,r=new FormData,o=this.uppy.getState().meta;return this.addMetadata(r,o,t),e.forEach((function(e){var t=n.getOptions(e),o=wu(e);e.name?r.append(t.fieldName,o,e.name):r.append(t.fieldName,o)})),r},o.createBareUpload=function(e,t){return e.data},o.upload=function(e,t,n){var r=this,o=this.getOptions(e);return this.uppy.log("uploading "+t+" of "+n),new Promise((function(t,n){r.uppy.emit("upload-started",e);var i=o.formData?r.createFormDataUpload(e,o):r.createBareUpload(e,o),a=new XMLHttpRequest;r.uploaderEvents[e.id]=new su(r.uppy);var s=new uu(o.timeout,(function(){a.abort(),l.done();var t=new Error(r.i18n("timedOut",{seconds:Math.ceil(o.timeout/1e3)}));r.uppy.emit("upload-error",e,t),n(t)})),u=na();a.upload.addEventListener("loadstart",(function(e){r.uppy.log("[XHRUpload] "+u+" started")})),a.upload.addEventListener("progress",(function(t){r.uppy.log("[XHRUpload] "+u+" progress: "+t.loaded+" / "+t.total),s.progress(),t.lengthComputable&&r.uppy.emit("upload-progress",e,{uploader:r,bytesUploaded:t.loaded,bytesTotal:t.total})})),a.addEventListener("load",(function(i){if(r.uppy.log("[XHRUpload] "+u+" finished"),s.done(),l.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null),o.validateStatus(i.target.status,a.responseText,a)){var c=o.getResponseData(a.responseText,a),f=c[o.responseUrlFieldName],d={status:i.target.status,body:c,uploadURL:f};return r.uppy.emit("upload-success",e,d),f&&r.uppy.log("Download "+e.name+" from "+f),t(e)}var p=o.getResponseData(a.responseText,a),h=bu(a,o.getResponseError(a.responseText,a)),g={status:i.target.status,body:p};return r.uppy.emit("upload-error",e,h,g),n(h)})),a.addEventListener("error",(function(t){r.uppy.log("[XHRUpload] "+u+" errored"),s.done(),l.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null);var i=bu(a,o.getResponseError(a.responseText,a));return r.uppy.emit("upload-error",e,i),n(i)})),a.open(o.method.toUpperCase(),o.endpoint,!0),a.withCredentials=o.withCredentials,""!==o.responseType&&(a.responseType=o.responseType);var l=r.requests.run((function(){var t=r.getOptions(e);return Object.keys(t.headers).forEach((function(e){a.setRequestHeader(e,t.headers[e])})),a.send(i),function(){s.done(),a.abort()}}));r.onFileRemove(e.id,(function(){l.abort(),n(new Error("File removed"))})),r.onCancelAll(e.id,(function(){l.abort(),n(new Error("Upload cancelled"))}))}))},o.uploadRemote=function(e,t,n){var r=this,o=this.getOptions(e);return new Promise((function(t,n){r.uppy.emit("upload-started",e);var i={};(Array.isArray(o.metaFields)?o.metaFields:Object.keys(e.meta)).forEach((function(t){i[t]=e.meta[t]})),new(e.remote.providerOptions.provider?vu:yu)(r.uppy,e.remote.providerOptions).post(e.remote.url,gu({},e.remote.body,{endpoint:o.endpoint,size:e.data.size,fieldname:o.fieldName,metadata:i,httpMethod:o.method,useFormData:o.formData,headers:o.headers})).then((function(i){var a=i.token,s=function(e){var t=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(e)[1];return(/^http:\/\//i.test(e)?"ws":"wss")+"://"+t}(e.remote.companionUrl),u=new mu({target:s+"/api/"+a,autoOpen:!1});r.uploaderEvents[e.id]=new su(r.uppy),r.onFileRemove(e.id,(function(){u.send("pause",{}),l.abort(),t("upload "+e.id+" was removed")})),r.onCancelAll(e.id,(function(){u.send("pause",{}),l.abort(),t("upload "+e.id+" was canceled")})),r.onRetry(e.id,(function(){u.send("pause",{}),u.send("resume",{})})),r.onRetryAll(e.id,(function(){u.send("pause",{}),u.send("resume",{})})),u.on("progress",(function(t){return au(r,t,e)})),u.on("success",(function(n){var i=o.getResponseData(n.response.responseText,n.response),a=i[o.responseUrlFieldName],s={status:n.response.status,body:i,uploadURL:a};return r.uppy.emit("upload-success",e,s),l.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null),t()})),u.on("error",(function(t){var i=t.response,a=i?o.getResponseError(i.responseText,i):gu(new Error(t.error.message),{cause:t.error});r.uppy.emit("upload-error",e,a),l.done(),r.uploaderEvents[e.id]&&(r.uploaderEvents[e.id].remove(),r.uploaderEvents[e.id]=null),n(a)}));var l=r.requests.run((function(){return u.open(),e.isPaused&&u.send("pause",{}),function(){return u.close()}}))})).catch((function(t){r.uppy.emit("upload-error",e,t),n(t)}))}))},o.uploadBundle=function(e){var t=this;return new Promise((function(n,r){var o=t.opts.endpoint,i=t.opts.method,a=t.uppy.getState().xhrUpload,s=t.createBundledUpload(e,gu({},t.opts,a||{})),u=new XMLHttpRequest,l=new uu(t.opts.timeout,(function(){u.abort();var e=new Error(t.i18n("timedOut",{seconds:Math.ceil(t.opts.timeout/1e3)}));c(e),r(e)})),c=function(n){e.forEach((function(e){t.uppy.emit("upload-error",e,n)}))};u.upload.addEventListener("loadstart",(function(e){t.uppy.log("[XHRUpload] started uploading bundle"),l.progress()})),u.upload.addEventListener("progress",(function(n){l.progress(),n.lengthComputable&&e.forEach((function(e){t.uppy.emit("upload-progress",e,{uploader:t,bytesUploaded:n.loaded/n.total*e.size,bytesTotal:e.size})}))})),u.addEventListener("load",(function(o){if(l.done(),t.opts.validateStatus(o.target.status,u.responseText,u)){var i=t.opts.getResponseData(u.responseText,u),a={status:o.target.status,body:i};return e.forEach((function(e){t.uppy.emit("upload-success",e,a)})),n()}var s=t.opts.getResponseError(u.responseText,u)||new Error("Upload error");return s.request=u,c(s),r(s)})),u.addEventListener("error",(function(e){l.done();var n=t.opts.getResponseError(u.responseText,u)||new Error("Upload error");return c(n),r(n)})),t.uppy.on("cancel-all",(function(){l.done(),u.abort()})),u.open(i.toUpperCase(),o,!0),u.withCredentials=t.opts.withCredentials,""!==t.opts.responseType&&(u.responseType=t.opts.responseType),Object.keys(t.opts.headers).forEach((function(e){u.setRequestHeader(e,t.opts.headers[e])})),u.send(s),e.forEach((function(e){t.uppy.emit("upload-started",e)}))}))},o.uploadFiles=function(e){var t=this;return function(e){var t=[],n=[];function r(e){t.push(e)}function o(e){n.push(e)}return Promise.all(e.map((function(e){return e.then(r,o)}))).then((function(){return{successful:t,failed:n}}))}(e.map((function(n,r){var o=parseInt(r,10)+1,i=e.length;return n.error?Promise.reject(new Error(n.error)):n.isRemote?t.uploadRemote(n,o,i):t.upload(n,o,i)})))},o.onFileRemove=function(e,t){this.uploaderEvents[e].on("file-removed",(function(n){e===n.id&&t(n.id)}))},o.onRetry=function(e,t){this.uploaderEvents[e].on("upload-retry",(function(n){e===n&&t()}))},o.onRetryAll=function(e,t){var n=this;this.uploaderEvents[e].on("retry-all",(function(r){n.uppy.getFile(e)&&t()}))},o.onCancelAll=function(e,t){var n=this;this.uploaderEvents[e].on("cancel-all",(function(){n.uppy.getFile(e)&&t()}))},o.handleUpload=function(e){var t=this;if(0===e.length)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();0!==this.opts.limit||this.opts.__queue||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");var n=e.map((function(e){return t.uppy.getFile(e)}));if(this.opts.bundle){if(n.some((function(e){return e.isRemote})))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if("function"==typeof this.opts.headers)throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(n)}return this.uploadFiles(n).then((function(){return null}))},o.install=function(){if(this.opts.bundle){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:gu({},e,{individualCancellation:!1})})}this.uppy.addUploader(this.handleUpload)},o.uninstall=function(){if(this.opts.bundle){var e=this.uppy.getState().capabilities;this.uppy.setState({capabilities:gu({},e,{individualCancellation:!0})})}this.uppy.removeUploader(this.handleUpload)},r}(gs.Plugin),fu.VERSION="1.7.5",du),xu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Eu(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ou,ku,Tu=function(e){return e&&e.Math==Math&&e},Au=Tu("object"==typeof globalThis&&globalThis)||Tu("object"==typeof window&&window)||Tu("object"==typeof self&&self)||Tu("object"==typeof xu&&xu)||function(){return this}()||Function("return this")(),_u={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Pu=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},ju=function(e,t,n){if(Pu(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},Cu=function(e){try{return!!e()}catch(e){return!0}},Nu={}.toString,Lu=function(e){return Nu.call(e).slice(8,-1)},Iu="".split,Ru=Cu((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==Lu(e)?Iu.call(e,""):Object(e)}:Object,Mu=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Fu=function(e){return Object(Mu(e))},Du=Math.ceil,zu=Math.floor,Bu=function(e){return isNaN(e=+e)?0:(e>0?zu:Du)(e)},Uu=Math.min,Hu=function(e){return e>0?Uu(Bu(e),9007199254740991):0},Vu=function(e){return"object"==typeof e?null!==e:"function"==typeof e},$u=Array.isArray||function(e){return"Array"==Lu(e)},Wu=!Cu((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),qu=Au.document,Gu=Vu(qu)&&Vu(qu.createElement),Ku=function(e){return Gu?qu.createElement(e):{}},Yu=!Wu&&!Cu((function(){return 7!=Object.defineProperty(Ku("div"),"a",{get:function(){return 7}}).a})),Xu=function(e){if(!Vu(e))throw TypeError(String(e)+" is not an object");return e},Zu=function(e,t){if(!Vu(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Vu(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Vu(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Vu(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Ju=Object.defineProperty,Qu={f:Wu?Ju:function(e,t,n){if(Xu(e),t=Zu(t,!0),Xu(n),Yu)try{return Ju(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},el=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tl=Wu?function(e,t,n){return Qu.f(e,t,el(1,n))}:function(e,t,n){return e[t]=n,e},nl=function(e,t){try{tl(Au,e,t)}catch(n){Au[e]=t}return t},rl=Au["__core-js_shared__"]||nl("__core-js_shared__",{}),ol=Eu((function(e){(e.exports=function(e,t){return rl[e]||(rl[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),il={}.hasOwnProperty,al=Object.hasOwn||function(e,t){return il.call(Fu(e),t)},sl=0,ul=Math.random(),ll=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++sl+ul).toString(36)},cl=Au,fl=function(e){return"function"==typeof e?e:void 0},dl=function(e,t){return arguments.length<2?fl(cl[e])||fl(Au[e]):cl[e]&&cl[e][t]||Au[e]&&Au[e][t]},pl=dl("navigator","userAgent")||"",hl=Au.process,gl=hl&&hl.versions,vl=gl&&gl.v8;vl?ku=(Ou=vl.split("."))[0]<4?1:Ou[0]+Ou[1]:pl&&(!(Ou=pl.match(/Edge\/(\d+)/))||Ou[1]>=74)&&(Ou=pl.match(/Chrome\/(\d+)/))&&(ku=Ou[1]);var yl=ku&&+ku,ml=!!Object.getOwnPropertySymbols&&!Cu((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yl&&yl<41})),bl=ml&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wl=ol("wks"),Sl=Au.Symbol,xl=bl?Sl:Sl&&Sl.withoutSetter||ll,El=function(e){return al(wl,e)&&(ml||"string"==typeof wl[e])||(ml&&al(Sl,e)?wl[e]=Sl[e]:wl[e]=xl("Symbol."+e)),wl[e]},Ol=El("species"),kl=function(e,t){var n;return $u(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!$u(n.prototype)?Vu(n)&&null===(n=n[Ol])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},Tl=[].push,Al=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,l,c,f){for(var d,p,h=Fu(u),g=Ru(h),v=ju(l,c,3),y=Hu(g.length),m=0,b=f||kl,w=t?b(u,y):n||a?b(u,0):void 0;y>m;m++)if((s||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:Tl.call(w,d)}else switch(e){case 4:return!1;case 7:Tl.call(w,d)}return i?-1:r||o?o:w}},_l={forEach:Al(0),map:Al(1),filter:Al(2),some:Al(3),every:Al(4),find:Al(5),findIndex:Al(6),filterOut:Al(7)},Pl=function(e,t){var n=[][e];return!!n&&Cu((function(){n.call(null,t||function(){throw 1},1)}))},jl=_l.forEach,Cl=Pl("forEach")?[].forEach:function(e){return jl(this,e,arguments.length>1?arguments[1]:void 0)};for(var Nl in _u){var Ll=Au[Nl],Il=Ll&&Ll.prototype;if(Il&&Il.forEach!==Cl)try{tl(Il,"forEach",Cl)}catch(bh){Il.forEach=Cl}}
/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function Rl(e){return!0===function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}(e)&&"[object Object]"===Object.prototype.toString.call(e)}var Ml={isHistory(e){return!1!==Rl(t=e)&&"function"==typeof(n=t.constructor)&&!1!==Rl(r=n.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(0===e.redos.length||Fe.isOperationList(e.redos[0]))&&(0===e.undos.length||Fe.isOperationList(e.undos[0]));var t,n,r}},Fl=new WeakMap,Dl=new WeakMap,zl={isHistoryEditor:e=>Ml.isHistory(e.history)&&je.isEditor(e),isMerging:e=>Dl.get(e),isSaving:e=>Fl.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=zl.isMerging(e);Dl.set(e,!1),t(),Dl.set(e,n)},withoutSaving(e,t){var n=zl.isSaving(e);Fl.set(e,!1),t(),Fl.set(e,n)}},Bl={};Bl[El("toStringTag")]="z";var Ul="[object z]"===String(Bl),Hl=Function.toString;"function"!=typeof rl.inspectSource&&(rl.inspectSource=function(e){return Hl.call(e)});var Vl,$l,Wl,ql=rl.inspectSource,Gl=Au.WeakMap,Kl="function"==typeof Gl&&/native code/.test(ql(Gl)),Yl=ol("keys"),Xl=function(e){return Yl[e]||(Yl[e]=ll(e))},Zl={},Jl=Au.WeakMap;if(Kl||rl.state){var Ql=rl.state||(rl.state=new Jl),ec=Ql.get,tc=Ql.has,nc=Ql.set;Vl=function(e,t){if(tc.call(Ql,e))throw new TypeError("Object already initialized");return t.facade=e,nc.call(Ql,e,t),t},$l=function(e){return ec.call(Ql,e)||{}},Wl=function(e){return tc.call(Ql,e)}}else{var rc=Xl("state");Zl[rc]=!0,Vl=function(e,t){if(al(e,rc))throw new TypeError("Object already initialized");return t.facade=e,tl(e,rc,t),t},$l=function(e){return al(e,rc)?e[rc]:{}},Wl=function(e){return al(e,rc)}}var oc={set:Vl,get:$l,has:Wl,enforce:function(e){return Wl(e)?$l(e):Vl(e,{})},getterFor:function(e){return function(t){var n;if(!Vu(t)||(n=$l(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ic=Eu((function(e){var t=oc.get,n=oc.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var a,s=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||al(o,"name")||tl(o,"name",t),(a=n(o)).source||(a.source=r.join("string"==typeof t?t:""))),e!==Au?(s?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=o:tl(e,t,o)):u?e[t]=o:nl(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||ql(this)}))})),ac=El("toStringTag"),sc="Arguments"==Lu(function(){return arguments}()),uc=Ul?Lu:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),ac))?n:sc?Lu(t):"Object"==(r=Lu(t))&&"function"==typeof t.callee?"Arguments":r},lc=Ul?{}.toString:function(){return"[object "+uc(this)+"]"};Ul||ic(Object.prototype,"toString",lc,{unsafe:!0});var cc=function(){var e=Xu(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},fc=RegExp.prototype,dc=fc.toString,pc=Cu((function(){return"/a/b"!=dc.call({source:"a",flags:"b"})})),hc="toString"!=dc.name;(pc||hc)&&ic(RegExp.prototype,"toString",(function(){var e=Xu(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in fc)?cc.call(e):n)}),{unsafe:!0});var gc,vc={}.propertyIsEnumerable,yc=Object.getOwnPropertyDescriptor,mc={f:yc&&!vc.call({1:2},1)?function(e){var t=yc(this,e);return!!t&&t.enumerable}:vc},bc=function(e){return Ru(Mu(e))},wc=Object.getOwnPropertyDescriptor,Sc={f:Wu?wc:function(e,t){if(e=bc(e),t=Zu(t,!0),Yu)try{return wc(e,t)}catch(e){}if(al(e,t))return el(!mc.f.call(e,t),e[t])}},xc=Math.max,Ec=Math.min,Oc=function(e,t){var n=Bu(e);return n<0?xc(n+t,0):Ec(n,t)},kc=function(e){return function(t,n,r){var o,i=bc(t),a=Hu(i.length),s=Oc(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Tc={includes:kc(!0),indexOf:kc(!1)},Ac=Tc.indexOf,_c=function(e,t){var n,r=bc(e),o=0,i=[];for(n in r)!al(Zl,n)&&al(r,n)&&i.push(n);for(;t.length>o;)al(r,n=t[o++])&&(~Ac(i,n)||i.push(n));return i},Pc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],jc=Pc.concat("length","prototype"),Cc={f:Object.getOwnPropertyNames||function(e){return _c(e,jc)}},Nc={f:Object.getOwnPropertySymbols},Lc=dl("Reflect","ownKeys")||function(e){var t=Cc.f(Xu(e)),n=Nc.f;return n?t.concat(n(e)):t},Ic=function(e,t){for(var n=Lc(t),r=Qu.f,o=Sc.f,i=0;i<n.length;i++){var a=n[i];al(e,a)||r(e,a,o(t,a))}},Rc=/#|\.prototype\./,Mc=function(e,t){var n=Dc[Fc(e)];return n==Bc||n!=zc&&("function"==typeof t?Cu(t):!!t)},Fc=Mc.normalize=function(e){return String(e).replace(Rc,".").toLowerCase()},Dc=Mc.data={},zc=Mc.NATIVE="N",Bc=Mc.POLYFILL="P",Uc=Mc,Hc=Sc.f,Vc=function(e,t){var n,r,o,i,a,s=e.target,u=e.global,l=e.stat;if(n=u?Au:l?Au[s]||nl(s,{}):(Au[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Hc(n,r))&&a.value:n[r],!Uc(u?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ic(i,o)}(e.sham||o&&o.sham)&&tl(i,"sham",!0),ic(n,r,i,e)}},$c=Object.keys||function(e){return _c(e,Pc)},Wc=Wu?Object.defineProperties:function(e,t){Xu(e);for(var n,r=$c(t),o=r.length,i=0;o>i;)Qu.f(e,n=r[i++],t[n]);return e},qc=dl("document","documentElement"),Gc=Xl("IE_PROTO"),Kc=function(){},Yc=function(e){return"<script>"+e+"<\/script>"},Xc=function(){try{gc=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Xc=gc?function(e){e.write(Yc("")),e.close();var t=e.parentWindow.Object;return e=null,t}(gc):((t=Ku("iframe")).style.display="none",qc.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Yc("document.F=Object")),e.close(),e.F);for(var n=Pc.length;n--;)delete Xc.prototype[Pc[n]];return Xc()};Zl[Gc]=!0;var Zc=Object.create||function(e,t){var n;return null!==e?(Kc.prototype=Xu(e),n=new Kc,Kc.prototype=null,n[Gc]=e):n=Xc(),void 0===t?n:Wc(n,t)},Jc=El("unscopables"),Qc=Array.prototype;null==Qc[Jc]&&Qu.f(Qc,Jc,{configurable:!0,value:Zc(null)});var ef=function(e){Qc[Jc][e]=!0},tf=Tc.includes;Vc({target:"Array",proto:!0},{includes:function(e){return tf(this,e,arguments.length>1?arguments[1]:void 0)}}),ef("includes");var nf=El("match"),rf=function(e){var t;return Vu(e)&&(void 0!==(t=e[nf])?!!t:"RegExp"==Lu(e))},of=function(e){if(rf(e))throw TypeError("The method doesn't accept regular expressions");return e},af=El("match"),sf=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[af]=!1,"/./"[e](t)}catch(e){}}return!1};Vc({target:"String",proto:!0,forced:!sf("includes")},{includes:function(e){return!!~String(Mu(this)).indexOf(of(e),arguments.length>1?arguments[1]:void 0)}});var uf=/"/g;Vc({target:"String",proto:!0,forced:Cu((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return"a","name",t=e,n=String(Mu(this)),r="<a",(r+=' name="'+String(t).replace(uf,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var lf=function(e){var t=e.return;if(void 0!==t)return Xu(t.call(e)).value},cf=function(e,t,n,r){try{return r?t(Xu(n)[0],n[1]):t(n)}catch(t){throw lf(e),t}},ff={},df=El("iterator"),pf=Array.prototype,hf=function(e){return void 0!==e&&(ff.Array===e||pf[df]===e)},gf=function(e,t,n){var r=Zu(t);r in e?Qu.f(e,r,el(0,n)):e[r]=n},vf=El("iterator"),yf=function(e){if(null!=e)return e[vf]||e["@@iterator"]||ff[uc(e)]},mf=El("iterator"),bf=!1;try{var wf=0,Sf={next:function(){return{done:!!wf++}},return:function(){bf=!0}};Sf[mf]=function(){return this},Array.from(Sf,(function(){throw 2}))}catch(bh){}var xf=function(e,t){if(!t&&!bf)return!1;var n=!1;try{var r={};r[mf]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},Ef=!xf((function(e){Array.from(e)}));Vc({target:"Array",stat:!0,forced:Ef},{from:function(e){var t,n,r,o,i,a,s=Fu(e),u="function"==typeof this?this:Array,l=arguments.length,c=l>1?arguments[1]:void 0,f=void 0!==c,d=yf(s),p=0;if(f&&(c=ju(c,l>2?arguments[2]:void 0,2)),null==d||u==Array&&hf(d))for(n=new u(t=Hu(s.length));t>p;p++)a=f?c(s[p],p):s[p],gf(n,p,a);else for(i=(o=d.call(s)).next,n=new u;!(r=i.call(o)).done;p++)a=f?cf(o,c,[r.value,p],!0):r.value,gf(n,p,a);return n.length=p,n}});var Of,kf,Tf,Af=function(e){return function(t,n){var r,o,i=String(Mu(t)),a=Bu(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},_f={codeAt:Af(!1),charAt:Af(!0)},Pf=!Cu((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),jf=Xl("IE_PROTO"),Cf=Object.prototype,Nf=Pf?Object.getPrototypeOf:function(e){return e=Fu(e),al(e,jf)?e[jf]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Cf:null},Lf=El("iterator"),If=!1;[].keys&&("next"in(Tf=[].keys())?(kf=Nf(Nf(Tf)))!==Object.prototype&&(Of=kf):If=!0),(null==Of||Cu((function(){var e={};return Of[Lf].call(e)!==e})))&&(Of={}),al(Of,Lf)||tl(Of,Lf,(function(){return this}));var Rf={IteratorPrototype:Of,BUGGY_SAFARI_ITERATORS:If},Mf=Qu.f,Ff=El("toStringTag"),Df=function(e,t,n){e&&!al(e=n?e:e.prototype,Ff)&&Mf(e,Ff,{configurable:!0,value:t})},zf=Rf.IteratorPrototype,Bf=function(){return this},Uf=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return Xu(n),function(e){if(!Vu(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Hf=Rf.IteratorPrototype,Vf=Rf.BUGGY_SAFARI_ITERATORS,$f=El("iterator"),Wf=function(){return this},qf=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Zc(zf,{next:el(1,n)}),Df(e,r,!1),ff[r]=Bf}(n,t,r);var s,u,l,c=function(e){if(e===o&&g)return g;if(!Vf&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[$f]||p["@@iterator"]||o&&p[o],g=!Vf&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(s=Nf(v.call(new e)),Hf!==Object.prototype&&s.next&&(Nf(s)!==Hf&&(Uf?Uf(s,Hf):"function"!=typeof s[$f]&&tl(s,$f,Wf)),Df(s,f,!0))),"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return h.call(this)}),p[$f]!==g&&tl(p,$f,g),ff[t]=g,o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in u)(Vf||d||!(l in p))&&ic(p,l,u[l]);else Vc({target:t,proto:!0,forced:Vf||d},u);return u},Gf=_f.charAt,Kf=oc.set,Yf=oc.getterFor("String Iterator");qf(String,"String",(function(e){Kf(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=Yf(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Gf(n,r),t.index+=e.length,{value:e,done:!1})}));var Xf=[].join,Zf=Ru!=Object,Jf=Pl("join",",");Vc({target:"Array",proto:!0,forced:Zf||!Jf},{join:function(e){return Xf.call(bc(this),void 0===e?",":e)}});var Qf=El("species"),ed=function(e){return yl>=51||!Cu((function(){var t=[];return(t.constructor={})[Qf]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},td=_l.map,nd=ed("map");Vc({target:"Array",proto:!0,forced:!nd},{map:function(e){return td(this,e,arguments.length>1?arguments[1]:void 0)}});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var rd=function(e,t){return(rd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function od(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}rd(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var id=function(){return(id=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ad(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function sd(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ud(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var ld=0,cd=function(){this.id=""+ld++},fd=oc.set,dd=oc.getterFor("Array Iterator"),pd=qf(Array,"Array",(function(e,t){fd(this,{type:"Array Iterator",target:bc(e),index:0,kind:t})}),(function(){var e=dd(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");ff.Arguments=ff.Array,ef("keys"),ef("values"),ef("entries");var hd=function(e,t,n){for(var r in t)ic(e,r,t[r],n);return e},gd=!Cu((function(){return Object.isExtensible(Object.preventExtensions({}))})),vd=Eu((function(e){var t=Qu.f,n=ll("meta"),r=0,o=Object.isExtensible||function(){return!0},i=function(e){t(e,n,{value:{objectID:"O"+ ++r,weakData:{}}})},a=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!Vu(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!al(e,n)){if(!o(e))return"F";if(!t)return"E";i(e)}return e[n].objectID},getWeakData:function(e,t){if(!al(e,n)){if(!o(e))return!0;if(!t)return!1;i(e)}return e[n].weakData},onFreeze:function(e){return gd&&a.REQUIRED&&o(e)&&!al(e,n)&&i(e),e}};Zl[n]=!0})),yd=function(e,t){this.stopped=e,this.result=t},md=function(e,t,n){var r,o,i,a,s,u,l,c=n&&n.that,f=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),h=ju(t,c,1+f+p),g=function(e){return r&&lf(r),new yd(!0,e)},v=function(e){return f?(Xu(e),p?h(e[0],e[1],g):h(e[0],e[1])):p?h(e,g):h(e)};if(d)r=e;else{if("function"!=typeof(o=yf(e)))throw TypeError("Target is not iterable");if(hf(o)){for(i=0,a=Hu(e.length);a>i;i++)if((s=v(e[i]))&&s instanceof yd)return s;return new yd(!1)}r=o.call(e)}for(u=r.next;!(l=u.call(r)).done;){try{s=v(l.value)}catch(e){throw lf(r),e}if("object"==typeof s&&s&&s instanceof yd)return s}return new yd(!1)},bd=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},wd=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=Au[e],s=a&&a.prototype,u=a,l={},c=function(e){var t=s[e];ic(s,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!Vu(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!Vu(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!Vu(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(Uc(e,"function"!=typeof a||!(o||s.forEach&&!Cu((function(){(new a).entries().next()})))))u=n.getConstructor(t,e,r,i),vd.REQUIRED=!0;else if(Uc(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=Cu((function(){f.has(1)})),h=xf((function(e){new a(e)})),g=!o&&Cu((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((u=t((function(t,n){bd(t,u,e);var o=function(e,t,n){var r,o;return Uf&&"function"==typeof(r=t.constructor)&&r!==n&&Vu(o=r.prototype)&&o!==n.prototype&&Uf(e,o),e}(new a,t,u);return null!=n&&md(n,o[i],{that:o,AS_ENTRIES:r}),o}))).prototype=s,s.constructor=u),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&s.clear&&delete s.clear}return l[e]=u,Vc({global:!0,forced:u!=a},l),Df(u,e),o||n.setStrong(u,e,r),u},Sd=vd.getWeakData,xd=oc.set,Ed=oc.getterFor,Od=_l.find,kd=_l.findIndex,Td=0,Ad=function(e){return e.frozen||(e.frozen=new _d)},_d=function(){this.entries=[]},Pd=function(e,t){return Od(e.entries,(function(e){return e[0]===t}))};_d.prototype={get:function(e){var t=Pd(this,e);if(t)return t[1]},has:function(e){return!!Pd(this,e)},set:function(e,t){var n=Pd(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=kd(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}};var jd={getConstructor:function(e,t,n,r){var o=e((function(e,i){bd(e,o,t),xd(e,{type:t,id:Td++,frozen:void 0}),null!=i&&md(i,e[r],{that:e,AS_ENTRIES:n})})),i=Ed(t),a=function(e,t,n){var r=i(e),o=Sd(Xu(t),!0);return!0===o?Ad(r).set(t,n):o[r.id]=n,e};return hd(o.prototype,{delete:function(e){var t=i(this);if(!Vu(e))return!1;var n=Sd(e);return!0===n?Ad(t).delete(e):n&&al(n,t.id)&&delete n[t.id]},has:function(e){var t=i(this);if(!Vu(e))return!1;var n=Sd(e);return!0===n?Ad(t).has(e):n&&al(n,t.id)}}),hd(o.prototype,n?{get:function(e){var t=i(this);if(Vu(e)){var n=Sd(e);return!0===n?Ad(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return a(this,e,t)}}:{add:function(e){return a(this,e,!0)}}),o}};Eu((function(e){var t,n=oc.enforce,r=!Au.ActiveXObject&&"ActiveXObject"in Au,o=Object.isExtensible,i=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},a=e.exports=wd("WeakMap",i,jd);if(Kl&&r){t=jd.getConstructor(i,"WeakMap",!0),vd.REQUIRED=!0;var s=a.prototype,u=s.delete,l=s.has,c=s.get,f=s.set;hd(s,{delete:function(e){if(Vu(e)&&!o(e)){var r=n(this);return r.frozen||(r.frozen=new t),u.call(this,e)||r.frozen.delete(e)}return u.call(this,e)},has:function(e){if(Vu(e)&&!o(e)){var r=n(this);return r.frozen||(r.frozen=new t),l.call(this,e)||r.frozen.has(e)}return l.call(this,e)},get:function(e){if(Vu(e)&&!o(e)){var r=n(this);return r.frozen||(r.frozen=new t),l.call(this,e)?c.call(this,e):r.frozen.get(e)}return c.call(this,e)},set:function(e,r){if(Vu(e)&&!o(e)){var i=n(this);i.frozen||(i.frozen=new t),l.call(this,e)?f.call(this,e,r):i.frozen.set(e,r)}else f.call(this,e,r);return this}})}}));var Cd=El("iterator"),Nd=El("toStringTag"),Ld=pd.values;for(var Id in _u){var Rd=Au[Id],Md=Rd&&Rd.prototype;if(Md){if(Md[Cd]!==Ld)try{tl(Md,Cd,Ld)}catch(bh){Md[Cd]=Ld}if(Md[Nd]||tl(Md,Nd,Id),_u[Id])for(var Fd in pd)if(Md[Fd]!==pd[Fd])try{tl(Md,Fd,pd[Fd])}catch(bh){Md[Fd]=pd[Fd]}}}var Dd=new WeakMap,zd=new WeakMap,Bd=new WeakMap,Ud=new WeakMap,Hd=new WeakMap,Vd=new WeakMap,$d=new WeakMap,Wd=new WeakMap,qd=new WeakMap,Gd=new WeakMap,Kd=new WeakMap,Yd=new WeakMap,Xd=new WeakMap,Zd=new WeakMap,Jd=new WeakMap,Qd=new WeakMap,ep=new WeakMap,tp=new WeakMap,np=new WeakMap,rp=new WeakMap,op=new WeakMap,ip=new WeakMap,ap=new WeakMap,sp=new WeakMap,up=new WeakMap,lp=_l.find,cp=!0;"find"in[]&&Array(1).find((function(){cp=!1})),Vc({target:"Array",proto:!0,forced:cp},{find:function(e){return lp(this,e,arguments.length>1?arguments[1]:void 0)}}),ef("find");var fp=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];Ln.fn.css=qn,Ln.fn.append=Xn,Ln.fn.addClass=In,Ln.fn.removeClass=Rn,Ln.fn.hasClass=Mn,Ln.fn.on=Un,Ln.fn.focus=or,Ln.fn.attr=Fn,Ln.fn.removeAttr=Dn,Ln.fn.hide=$n,Ln.fn.show=Wn,Ln.fn.offset=function(){if(this.length>0){var e=On(),t=xn(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,a=n.clientLeft||o.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,u=n===e?e.scrollX:n.scrollLeft;return{top:r.top+s-i,left:r.left+u-a}}return null},Ln.fn.width=Hn,Ln.fn.height=Vn,Ln.fn.parent=function(e){for(var t=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(e?Ln(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return Ln(t)},Ln.fn.parents=Zn,Ln.fn.is=function(e){var t,n,r=On(),o=xn(),i=this[0];if(!i||void 0===e)return!1;if("string"==typeof e){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=Ln(e),n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}if(e===o)return i===o;if(e===r)return i===r;if(e.nodeType||e instanceof jn){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===i)return!0;return!1}return!1},Ln.fn.dataset=zn,Ln.fn.val=Bn,Ln.fn.text=Yn,Ln.fn.html=Kn,Ln.fn.children=Qn,Ln.fn.remove=er,Ln.fn.find=Jn,Ln.fn.each=Gn;var dp=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},pp=function(e){return hp(e)&&1===e.nodeType},hp=function(e){var t=dp(e);return!!t&&e instanceof t.Node},gp=function(e){var t=e&&e.anchorNode&&dp(e.anchorNode);return!!t&&e instanceof t.Selection},vp=function(e){return hp(e)&&3===e.nodeType},yp=function(e,t,n){for(var r,o=e.childNodes,i=o[t],a=t,s=!1,u=!1;(hp(r=i)&&8===r.nodeType||pp(i)&&0===i.childNodes.length||pp(i)&&"false"===i.getAttribute("contenteditable"))&&(!s||!u);)a>=o.length?(s=!0,a=t-1,n="backward"):a<0?(u=!0,a=t+1,n="forward"):(i=o[a],t=a,a+="forward"===n?1:-1);return[i,t]},mp=function(e,t,n){return sd(yp(e,t,n),1)[0]},bp=function e(t){var n,r,o="";if(vp(t)&&t.nodeValue)return t.nodeValue;if(pp(t)){try{for(var i=ad(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}var s=getComputedStyle(t).getPropertyValue("display");"block"!==s&&"list"!==s&&"BR"!==t.tagName||(o+="\n")}return o};function wp(e,t){for(var n=e.childNodes,r=n.length;r--;){var o=n[r],i=o.nodeType;3==i?t(o,e):1!=i&&9!=i&&11!=i||wp(o,t)}}void 0!==globalThis.navigator&&void 0!==globalThis.window&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&globalThis.window.MSStream;var Sp="undefined"!=typeof navigator&&/Mac OS X/.test(navigator.userAgent),xp="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);"undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])).*/i.test(navigator.userAgent);var Ep="undefined"!=typeof navigator&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Op="undefined"!=typeof navigator&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])/i.test(navigator.userAgent),kp="undefined"!=typeof navigator&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])/i.test(navigator.userAgent),Tp="undefined"!=typeof navigator&&/Chrome/i.test(navigator.userAgent),Ap=!kp&&!Op&&"undefined"!=typeof globalThis&&globalThis.InputEvent&&"function"==typeof globalThis.InputEvent.prototype.getTargetRanges,_p={getWindow:function(e){var t=rp.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var n=np.get(t);return n||(n=new cd,np.set(t,n)),n},setNewKey:function(e){var t=new cd;np.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var o=Zd.get(r);if(null==o){if(je.isEditor(r))return n;break}var i=Xd.get(r);if(null==i)break;n.unshift(i),r=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=_p.toDOMNode(e,e),n=t.getRootNode();if(t.ownerDocument!==document)return t.ownerDocument;if(!(n instanceof Document||n instanceof ShadowRoot))throw new Error("Unable to find DocumentOrShadowRoot for editor element: "+t);return void 0===n.getSelection&&null!==t.ownerDocument?t.ownerDocument:n},getParentNode:function(e,t){return Zd.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&null!=r;){var o=_p.getParentNode(e,r);null!=o&&(n.push(o),r=o)}return n},getTopNode:function(e,t){var n=[_p.findPath(e,t)[0]];return Ie.get(e,n)},toDOMNode:function(e,t){var n;if(je.isEditor(t))n=Jd.get(e);else{var r=_p.findKey(e,t);n=ep.get(r)}if(!n)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return n},hasDOMNode:function(e,t,n){void 0===n&&(n={});var r,o=n.editable,i=void 0!==o&&o,a=_p.toDOMNode(e,e);try{r=pp(t)?t:t.parentElement}catch(e){if(!e.message.includes('Permission denied to access property "nodeType"'))throw e}return!!r&&r.closest("[data-slate-editor]")===a&&(!i||r.isContentEditable||!!r.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var n=t.anchor,r=t.focus,o=We.isBackward(t),i=_p.toDOMPoint(e,n),a=We.isCollapsed(t)?i:_p.toDOMPoint(e,r),s=_p.getWindow(e).document.createRange(),u=sd(o?a:i,2),l=u[0],c=u[1],f=sd(o?i:a,2),d=f[0],p=f[1],h=!!(pp(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),g=!!(pp(d)?d:d.parentElement).getAttribute("data-slate-zero-width");return s.setStart(l,h?1:c),s.setEnd(d,g?1:p),s},toDOMPoint:function(e,t){var n,r,o,i=sd(je.node(e,t.path),1)[0],a=_p.toDOMNode(e,i);je.void(e,{at:t})&&(t={path:t.path,offset:0});var s=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),u=0;try{for(var l=ad(s),c=l.next();!c.done;c=l.next()){var f=c.value,d=f.childNodes[0];if(null!=d&&null!=d.textContent){var p=d.textContent.length,h=f.getAttribute("data-slate-length"),g=u+(null==h?p:parseInt(h,10));if(t.offset<=g){o=[d,Math.min(p,Math.max(0,t.offset-u))];break}u=g}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var n=pp(t)?t:t.parentElement;n&&!n.hasAttribute("data-slate-node")&&(n=n.closest("[data-slate-node]"));var r=n?Qd.get(n):null;if(!r)throw new Error("Cannot resolve a Slate node from DOM node: "+n);return r},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var n=t.clientX,r=t.clientY,o=t.target;if(null==n||null==r)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=_p.toSlateNode(e,t.target),s=_p.findPath(e,a);if(je.isVoid(e,a)){var u=o.getBoundingClientRect(),l=e.isInline(a)?n-u.left<u.left+u.width-n:r-u.top<u.top+u.height-r,c=je.point(e,s,{edge:l?"start":"end"}),f=l?je.before(e,c):je.after(e,c);if(f)return je.range(e,f)}var d=window.document;if(d.caretRangeFromPoint)i=d.caretRangeFromPoint(n,r);else{var p=d.caretPositionFromPoint(n,r);p&&((i=d.createRange()).setStart(p.offsetNode,p.offset),i.setEnd(p.offsetNode,p.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return _p.toSlateRange(e,i,{exactMatch:!1})},toSlateRange:function(e,t,n){var r,o,i,a,s,u=n.exactMatch;if((gp(t)?t.anchorNode:t.startContainer)&&(gp(t)?(r=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=Tp&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(r=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,s=t.collapsed)),null==r||null==i||null==o||null==a)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var l=_p.toSlatePoint(e,[r,o],u);if(!l)return null;var c=s?l:_p.toSlatePoint(e,[i,a],u);return c?{anchor:l,focus:c}:null},toSlatePoint:function(e,t,n){var r=sd(n?t:function(e){var t,n=sd(e,2),r=n[0],o=n[1];if(pp(r)&&r.childNodes.length){var i=o===r.childNodes.length,a=i?o-1:o;for(r=(t=sd(yp(r,a,i?"backward":"forward"),2))[0],i=(a=t[1])<o;pp(r)&&r.childNodes.length;){var s=i?r.childNodes.length-1:0;r=mp(r,s,i?"backward":"forward")}o=i&&null!=r.textContent?r.textContent.length:0}return[r,o]}(t),2),o=r[0],i=r[1],a=o.parentNode,s=null,u=0;if(a){var l=a.closest('[data-slate-void="true"]'),c=a.closest("[data-slate-leaf]"),f=null;if(c){s=c.closest('[data-slate-node="text"]');var d=_p.getWindow(e).document.createRange();d.setStart(s,0),d.setEnd(o,i);var p=d.cloneContents();ud(ud([],sd(mn(p.querySelectorAll("[data-slate-zero-width]")))),sd(mn(p.querySelectorAll("[contenteditable=false]")))).forEach((function(e){e.parentNode.removeChild(e)})),u=p.textContent.length,f=s}else l&&((c=l.querySelector("[data-slate-leaf]"))?(s=c.closest('[data-slate-node="text"]'),u=(f=c).textContent.length,f.querySelectorAll("[data-slate-zero-width]").forEach((function(e){u-=e.textContent.length}))):u=1);f&&u===f.textContent.length&&a.hasAttribute("data-slate-zero-width")&&u--}if(!s){if(n)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var h=_p.toSlateNode(e,s);return{path:_p.findPath(e,h),offset:u}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return je.hasPath(e,n.path)&&je.hasPath(e,r.path)},getNodeType:function(e){return Te.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return Ie.string(e)})).join("")},getSelectedElems:function(e){var t,n,r=[],o=je.nodes(e,{universal:!0});try{for(var i=ad(o),a=i.next();!a.done;a=i.next()){var s=sd(a.value,1)[0];Te.isElement(s)&&r.push(s)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},getSelectedNodeByType:function(e,t){var n=this,r=sd(je.nodes(e,{match:function(e){return n.checkNodeType(e,t)},universal:!0}),1)[0];return null==r?null:r[0]},getSelectedTextNode:function(e){var t=sd(je.nodes(e,{match:function(e){return Ye.isText(e)},universal:!0}),1)[0];return null==t?null:t[0]},isNodeSelected:function(e,t){var n=sd(je.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return null!=n&&sd(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(je.isEnd(e,n.anchor,t)||je.isEnd(e,n.focus,t))},recordChangingPath:function(e,t){ip.set(e,t)},deleteChangingPath:function(e){ip.delete(e)},isChangingPath:function(e,t){var n=ip.get(e)||[];return ft(n,t)},getTextarea:function(e){var t=Dd.get(e);if(null==t)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return Ud.get(e)||null},getHoverbar:function(e){return Vd.get(e)||null},normalizeContent:function(e){e.children.forEach((function(t,n){e.normalizeNode([t,[n]])}))},checkMaxLength:function(e,t){void 0===t&&(t="");var n=e.getConfig(),r=n.maxLength,o=n.onMaxLength;return"number"==typeof r&&r>0&&(t||(t=" "),e.getText().length+t.length>r)&&(o&&o(e),!0)},cleanExposedTexNodeInSelectionBlock:function(e){var t,n,r=je.nodes(e,{match:function(t){return!(!Te.isElement(t)||e.isInline(t))},universal:!0});try{for(var o=ad(r),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){var s=a[0];wp(_p.toDOMNode(e,s),(function(e,t){var n=Ln(t);n.attr("data-slate-string")||n.attr("data-slate-zero-width")||(console.log({parent:t,textNode:e}),t.removeChild(e))}))}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}}},Pp=1,jp={},Cp={};function Np(e){if(!e.options.indentation&&!e.options.lineSeparator)return;let t;for(e.content+=e.options.lineSeparator,t=0;t<e.level;t++)e.content+=e.options.indentation}function Lp(e,t){e.content+=t}function Ip(e,t,n){if("string"==typeof e.content)!function(e,t,n){n||(e.content=e.content.trim()),e.content.length>0&&(!n&&t.content.length>0&&Np(t),Lp(t,e.content))}(e,t,n);else if("Element"===e.type)!function(e,t,n){if(!n&&t.content.length>0&&Np(t),Lp(t,"<"+e.name),Rp(t,e.attributes),null===e.children){const e=t.options.whiteSpaceAtEndOfSelfclosingTag?" />":"/>";Lp(t,e)}else if(0===e.children.length)Lp(t,"></"+e.name+">");else{Lp(t,">"),t.level++;let r="preserve"===e.attributes["xml:space"];!r&&t.options.collapseContent&&e.children.some((function(e){return"Text"===e.type&&""!==e.content.trim()}))&&(r=!0),e.children.forEach((function(e){Ip(e,t,n||r,t.options)})),t.level--,n||r||Np(t),Lp(t,"</"+e.name+">")}}(e,t,n);else{if("ProcessingInstruction"!==e.type)throw new Error("Unknown node type: "+e.type);Mp(e,t)}}function Rp(e,t){Object.keys(t).forEach((function(n){const r=t[n].replace(/"/g,"&quot;");Lp(e," "+n+'="'+r+'"')}))}function Mp(e,t){t.content.length>0&&Np(t),Lp(t,"<?"+e.name),Rp(t,e.attributes),Lp(t,"?>")}var Fp=function(e,t={}){t.indentation="indentation"in t?t.indentation:"    ",t.collapseContent=!0===t.collapseContent,t.lineSeparator="lineSeparator"in t?t.lineSeparator:"\r\n",t.whiteSpaceAtEndOfSelfclosingTag=!!t.whiteSpaceAtEndOfSelfclosingTag;const n=function(e,t={}){function n(){return i()||function(){const e=l(/^([^<]+)/);if(e){const n={type:"Text",content:e[1]};return{excluded:!1===t.filter(n),node:n}}}()||a()||function(){if(e.startsWith("<![CDATA[")){const n=e.indexOf("]]>");if(n>-1){const r=n+3,o={type:"CDATA",content:e.substring(0,r)};return e=e.slice(r),{excluded:!1===t.filter(o),node:o}}}}()}function r(){return l(/\s*/),i(!0)||a()||function(){const e=l(/^<!DOCTYPE\s+[^>]*>/);if(e){const n={type:"DocumentType",content:e[0]};return{excluded:!1===t.filter(n),node:n}}}()||o(!1)}function o(e){const n=l(e?/^<\?(xml)\s*/:/^<\?([\w-:.]+)\s*/);if(!n)return;const r={name:n[1],type:"ProcessingInstruction",attributes:{}};for(;!c()&&!f("?>");){const e=s();if(!e)return r;r.attributes[e.name]=e.value}return l(/\?>/),{excluded:!e&&!1===t.filter(r),node:r}}function i(e){const r=l(/^<([\w-:.]+)\s*/);if(!r)return;const o={type:"Element",name:r[1],attributes:{},children:[]};for(;!(c()||f(">")||f("?>")||f("/>"));){const e=s();if(!e)return o;o.attributes[e.name]=e.value}const i=!e&&!1===t.filter(o);if(l(/^\s*\/>/))return o.children=null,{excluded:i,node:o};if(l(/\??>/),!i){let e=n();for(;e;)e.excluded||o.children.push(e.node),e=n()}return l(/^<\/[\w-:.]+>/),{excluded:i,node:o}}function a(){const e=l(/^<!--[\s\S]*?-->/);if(e){const n={type:"Comment",content:e[0]};return{excluded:!1===t.filter(n),node:n}}}function s(){const e=l(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(e)return{name:e[1],value:u(e[2])}}function u(e){return e.replace(/^['"]|['"]$/g,"")}function l(t){const n=e.match(t);if(n)return e=e.slice(n[0].length),n}function c(){return 0===e.length}function f(t){return 0===e.indexOf(t)}return t.filter=t.filter||(()=>!0),e=e.trim(),function(){const e=o(!0),t=[];let n,i=r();for(;i;){if("Element"===i.node.type){if(n)throw new Error("Found multiple root nodes");n=i.node}i.excluded||t.push(i.node),i=r()}if(!n)throw new Error("Failed to parse XML");return{declaration:e?e.node:null,root:n,children:t}}()}(e,{filter:t.filter}),r={content:"",level:0,options:t};return n.declaration&&Mp(n.declaration,r),n.children.forEach((function(e){Ip(e,r,!1)})),r.content},Dp=[];var zp=[];var Bp={};function Up(e,t,n){var r=n.isInline(e)?"span":"div";return"<"+r+">"+t+"</"+r+">"}function Hp(e,t){return RegExp(e,t)}var Vp,$p,Wp={UNSUPPORTED_Y:Cu((function(){var e=Hp("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:Cu((function(){var e=Hp("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},qp=RegExp.prototype.exec,Gp=ol("native-string-replace",String.prototype.replace),Kp=qp,Yp=(Vp=/a/,$p=/b*/g,qp.call(Vp,"a"),qp.call($p,"a"),0!==Vp.lastIndex||0!==$p.lastIndex),Xp=Wp.UNSUPPORTED_Y||Wp.BROKEN_CARET,Zp=void 0!==/()??/.exec("")[1];(Yp||Zp||Xp)&&(Kp=function(e){var t,n,r,o,i=this,a=Xp&&i.sticky,s=cc.call(i),u=i.source,l=0,c=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),c=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",c=" "+c,l++),n=new RegExp("^(?:"+u+")",s)),Zp&&(n=new RegExp("^"+u+"$(?!\\s)",s)),Yp&&(t=i.lastIndex),r=qp.call(a?n:i,c),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Yp&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),Zp&&r&&r.length>1&&Gp.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Jp=Kp;Vc({target:"RegExp",proto:!0,forced:/./.exec!==Jp},{exec:Jp});var Qp=El("species"),eh=RegExp.prototype,th=!Cu((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),nh="$0"==="a".replace(/./,"$0"),rh=El("replace"),oh=!!/./[rh]&&""===/./[rh]("a","$0"),ih=!Cu((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),ah=function(e,t,n,r){var o=El(e),i=!Cu((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Cu((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Qp]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||"replace"===e&&(!th||!nh||oh)||"split"===e&&!ih){var s=/./[o],u=n(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===Jp||a===eh.exec?i&&!o?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:nh,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:oh}),l=u[0],c=u[1];ic(String.prototype,e,l),ic(eh,o,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)})}r&&tl(eh[o],"sham",!0)},sh=_f.charAt,uh=function(e,t,n){return t+(n?sh(e,t).length:1)},lh=Math.floor,ch="".replace,fh=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,dh=/\$([$&'`]|\d{1,2})/g,ph=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,u=dh;return void 0!==o&&(o=Fu(o),u=fh),ch.call(i,u,(function(i,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":l=o[u.slice(1,-1)];break;default:var c=+u;if(0===c)return i;if(c>s){var f=lh(c/10);return 0===f?i:f<=s?void 0===r[f-1]?u.charAt(1):r[f-1]+u.charAt(1):i}l=r[c-1]}return void 0===l?"":l}))},hh=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==Lu(e))throw TypeError("RegExp#exec called on incompatible receiver");return Jp.call(e,t)},gh=Math.max,vh=Math.min;function yh(e,t){return Te.isElement(e)?function(e,t){var n=e.type,r=void 0===n?"":n,o=e.children,i=void 0===o?[]:o,a=je.isVoid(t,e),s="";a||(s=i.map((function(e){return yh(e,t)})).join(" "));var u=(Bp[r]||Up)(e,s,t);return a||Dp.forEach((function(t){return u=t(e,u)})),u}(e,t):function(e,t){var n=e.text;if(null==n)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=n;return r=function(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")}(r),_p.getParentsNodes(t,e).some((function(e){return"pre"===_p.getNodeType(e)}))||(r=r.replace(/\n|\r/g,"<br/>")),zp.forEach((function(n){return r=n(e,r,t)})),Dp.forEach((function(t){return r=t(e,r)})),r}(e,t)}function mh(e){return"w-e-element-"+e}ah("replace",2,(function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=Mu(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var s=n(t,e,this,r);if(s.done)return s.value}var u=Xu(e),l=String(this),c="function"==typeof r;c||(r=String(r));var f=u.global;if(f){var d=u.unicode;u.lastIndex=0}for(var p=[];;){var h=hh(u,l);if(null===h)break;if(p.push(h),!f)break;""===String(h[0])&&(u.lastIndex=uh(l,Hu(u.lastIndex),d))}for(var g,v="",y=0,m=0;m<p.length;m++){h=p[m];for(var b=String(h[0]),w=gh(vh(Bu(h.index),l.length),0),S=[],x=1;x<h.length;x++)S.push(void 0===(g=h[x])?g:String(g));var E=h.groups;if(c){var O=[b].concat(S,w,l);void 0!==E&&O.push(E);var k=String(r.apply(void 0,O))}else k=ph(b,l,w,S,E,r);w>=y&&(v+=l.slice(y,w)+k,y=w+b.length)}return v+l.slice(y)}]}));var bh,wh=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},Sh=function(e,t,n){var r=_p.toDOMRange(e,t).getBoundingClientRect(),o=_p.toDOMRange(e,n).getBoundingClientRect();return wh(r,o)&&wh(o,r)},xh="\t\n\v\f\r                　\u2028\u2029\ufeff",Eh="["+xh+"]",Oh=RegExp("^"+Eh+Eh+"*"),kh=RegExp(Eh+Eh+"*$"),Th=function(e){return function(t){var n=String(Mu(t));return 1&e&&(n=n.replace(Oh,"")),2&e&&(n=n.replace(kh,"")),n}},Ah={start:Th(1),end:Th(2),trim:Th(3)}.trim;Vc({target:"String",proto:!0,forced:(bh="trim",Cu((function(){return!!xh[bh]()||"​᠎"!="​᠎"[bh]()||xh[bh].name!==bh})))},{trim:function(){return Ah(this)}});var _h=El("species"),Ph=function(e,t){var n,r=Xu(e).constructor;return void 0===r||null==(n=Xu(r)[_h])?t:Pu(n)},jh=Wp.UNSUPPORTED_Y,Ch=[].push,Nh=Math.min;ah("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(Mu(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!rf(e))return t.call(r,e,o);for(var i,a,s,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=Jp.call(f,r))&&!((a=f.lastIndex)>c&&(u.push(r.slice(c,i.index)),i.length>1&&i.index<r.length&&Ch.apply(u,i.slice(1)),s=i[0].length,c=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!s&&f.test("")||u.push(""):u.push(r.slice(c)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=Mu(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var a=Xu(e),s=String(this),u=Ph(a,RegExp),l=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(jh?"g":"y"),f=new u(jh?"^(?:"+a.source+")":a,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===s.length)return null===hh(f,s)?[s]:[];for(var p=0,h=0,g=[];h<s.length;){f.lastIndex=jh?0:h;var v,y=hh(f,jh?s.slice(h):s);if(null===y||(v=Nh(Hu(f.lastIndex+(jh?h:0)),s.length))===p)h=uh(s,h,l);else{if(g.push(s.slice(p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(g.push(y[m]),g.length===d)return g;h=p=v}}return g.push(s.slice(p)),g}]}),jh);var Lh=function(e){var t=e,n=t.insertText,r=t.insertFragment;return t.setFragmentData=function(e){var n=t.selection;if(n){var r=sd(We.edges(n),2),o=r[0],i=r[1],a=je.void(t,{at:o.path}),s=je.void(t,{at:i.path});if(!We.isCollapsed(n)||a){var u=_p.toDOMRange(t,n),l=u.cloneContents(),c=l.childNodes[0];if(l.childNodes.forEach((function(e){e.textContent&&""!==e.textContent.trim()&&(c=e)})),s){var f=sd(s,1)[0],d=u.cloneRange(),p=_p.toDOMNode(t,f);d.setEndAfter(p),l=d.cloneContents()}if(a&&(c=l.querySelector("[data-slate-spacer]")),Array.from(l.querySelectorAll("[data-slate-zero-width]")).forEach((function(e){var t="n"===e.getAttribute("data-slate-zero-width");e.textContent=t?"\n":""})),vp(c)){var h=document.createElement("span");h.style.whiteSpace="pre",h.appendChild(c),l.appendChild(h),c=h}var g=t.getFragment(),v=JSON.stringify(g),y=window.btoa(encodeURIComponent(v));c.setAttribute("data-slate-fragment",y),e.setData("application/x-slate-fragment",y);var m=document.createElement("div");m.appendChild(l),m.setAttribute("hidden","true"),document.body.appendChild(m),e.setData("text/html",m.innerHTML),e.setData("text/plain",bp(m)),document.body.removeChild(m)}}},t.insertData=function(e){var r,o,i=e.getData("application/x-slate-fragment");if(i){var a=decodeURIComponent(window.atob(i)),s=JSON.parse(a);t.insertFragment(s)}else{var u=e.getData("text/plain");if(u){var l=u.split(/\r\n|\r|\n/),c=!1;try{for(var f=ad(l),d=f.next();!d.done;d=f.next()){var p=d.value;if(_p.checkMaxLength(t,p))return;c&&ct.splitNodes(t,{always:!0}),n(p),c=!0}}catch(e){r={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}}},t.insertFragment=function(e){var n=_p.getNodesStr(e);_p.checkMaxLength(t,n)||r(e)},t},Ih=El("species"),Rh=function(e){var t=dl(e),n=Qu.f;Wu&&t&&!t[Ih]&&n(t,Ih,{configurable:!0,get:function(){return this}})},Mh=Qu.f,Fh=vd.fastKey,Dh=oc.set,zh=oc.getterFor;wd("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var o=e((function(e,i){bd(e,o,t),Dh(e,{type:t,index:Zc(null),first:void 0,last:void 0,size:0}),Wu||(e.size=0),null!=i&&md(i,e[r],{that:e,AS_ENTRIES:n})})),i=zh(t),a=function(e,t,n){var r,o,a=i(e),u=s(e,t);return u?u.value=n:(a.last=u={index:o=Fh(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=u),r&&(r.next=u),Wu?a.size++:e.size++,"F"!==o&&(a.index[o]=u)),e},s=function(e,t){var n,r=i(e),o=Fh(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return hd(o.prototype,{clear:function(){for(var e=i(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Wu?e.size=0:this.size=0},delete:function(e){var t=this,n=i(t),r=s(t,e);if(r){var o=r.next,a=r.previous;delete n.index[r.index],r.removed=!0,a&&(a.next=o),o&&(o.previous=a),n.first==r&&(n.first=o),n.last==r&&(n.last=a),Wu?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=i(this),r=ju(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),hd(o.prototype,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),Wu&&Mh(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(e,t,n){var r=t+" Iterator",o=zh(t),i=zh(r);qf(e,t,(function(e,t){Dh(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),Rh(t)}});var Bh=function(e){return null!=e},Uh={object:!0,function:!0,undefined:!0},Hh=/^\s*class[\s{/}]/,Vh=Function.prototype.toString,$h=function(e){return!!function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!function(e){if(!function(e){return!!Bh(e)&&hasOwnProperty.call(Uh,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}(e)}(e)&&!Hh.test(Vh.call(e))},Wh=function(e){return null!=e},qh=Object.keys,Gh=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}()?Object.keys:function(e){return qh(Wh(e)?Object(e):e)},Kh=function(e){if(!Wh(e))throw new TypeError("Cannot use null or undefined");return e},Yh=Math.max,Xh=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(e,t){var n,r,o,i=Yh(arguments.length,2);for(e=Object(Kh(e)),o=function(r){try{e[r]=t[r]}catch(e){n||(n=e)}},r=1;r<i;++r)Gh(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e},Zh=Array.prototype.forEach,Jh=Object.create,Qh=function(e,t){var n;for(n in e)t[n]=e[n]},eg=function(e){var t=Jh(null);return Zh.call(arguments,(function(e){Wh(e)&&Qh(Object(e),t)})),t},tg="razdwatrzy",ng=String.prototype.indexOf,rg="function"==typeof tg.contains&&!0===tg.contains("dwa")&&!1===tg.contains("foo")?String.prototype.contains:function(e){return ng.call(this,e,arguments[1])>-1},og=Eu((function(e){(e.exports=function(e,t){var n,r,o,i,a;return arguments.length<2||"string"!=typeof e?(i=t,t=e,e=null):i=arguments[2],Bh(e)?(n=rg.call(e,"c"),r=rg.call(e,"e"),o=rg.call(e,"w")):(n=o=!0,r=!1),a={value:t,configurable:n,enumerable:r,writable:o},i?Xh(eg(i),a):a}).gs=function(e,t,n){var r,o,i,a;return"string"!=typeof e?(i=n,n=t,t=e,e=null):i=arguments[3],Bh(t)?$h(t)?Bh(n)?$h(n)||(i=n,n=void 0):n=void 0:(i=t,t=n=void 0):t=void 0,Bh(e)?(r=rg.call(e,"c"),o=rg.call(e,"e")):(r=!0,o=!1),a={get:t,set:n,configurable:r,enumerable:o},i?Xh(eg(i),a):a}})),ig=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e},ag=Eu((function(e,t){var n,r,o,i,a,s,u,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,d=Object.defineProperty,p=Object.defineProperties,h=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r,i;return ig(t),i=this,n.call(this,e,r=function(){o.call(i,e,r),l.call(t,this,arguments)}),r.__eeOnceListener__=t,this},a={on:n=function(e,t){var n;return ig(t),h.call(this,"__ee__")?n=this.__ee__:(n=g.value=f(null),d(this,"__ee__",g),g.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:o=function(e,t){var n,r,o,i;if(ig(t),!h.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(r=n[e]))for(i=0;o=r[i];++i)o!==t&&o.__eeOnceListener__!==t||(2===r.length?n[e]=r[i?0:1]:r.splice(i,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},emit:i=function(e){var t,n,r,o,i;if(h.call(this,"__ee__")&&(o=this.__ee__[e]))if("object"==typeof o){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(o=o.slice(),t=0;r=o[t];++t)l.call(r,this,i)}else switch(arguments.length){case 1:c.call(o,this);break;case 2:c.call(o,this,arguments[1]);break;case 3:c.call(o,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];l.call(o,this,i)}}},s={on:og(n),once:og(r),off:og(o),emit:og(i)},u=p({},s),e.exports=t=function(e){return null==e?f(u):p(Object(e),s)},t.methods=a}));function sg(e){var t=sp.get(e);return null==t&&(t=ag(),sp.set(e,t)),t}var ug=new WeakMap;function lg(e,t){var n=ug.get(e);null==n&&(n=new Set,ug.set(e,n)),n.add(t)}var cg=ed("slice"),fg=El("species"),dg=[].slice,pg=Math.max;Vc({target:"Array",proto:!0,forced:!cg},{slice:function(e,t){var n,r,o,i=bc(this),a=Hu(i.length),s=Oc(e,a),u=Oc(void 0===t?a:t,a);if($u(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!$u(n.prototype)?Vu(n)&&null===(n=n[fg])&&(n=void 0):n=void 0,n===Array||void 0===n))return dg.call(i,s,u);for(r=new(void 0===n?Array:n)(pg(u-s,0)),o=0;s<u;s++,o++)s in i&&gf(r,o,i[s]);return r.length=o,r}});var hg,gg,vg,yg=Au.Promise,mg=/(?:iphone|ipod|ipad).*applewebkit/i.test(pl),bg="process"==Lu(Au.process),wg=Au.location,Sg=Au.setImmediate,xg=Au.clearImmediate,Eg=Au.process,Og=Au.MessageChannel,kg=Au.Dispatch,Tg=0,Ag={},_g=function(e){if(Ag.hasOwnProperty(e)){var t=Ag[e];delete Ag[e],t()}},Pg=function(e){return function(){_g(e)}},jg=function(e){_g(e.data)},Cg=function(e){Au.postMessage(e+"",wg.protocol+"//"+wg.host)};Sg&&xg||(Sg=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return Ag[++Tg]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},hg(Tg),Tg},xg=function(e){delete Ag[e]},bg?hg=function(e){Eg.nextTick(Pg(e))}:kg&&kg.now?hg=function(e){kg.now(Pg(e))}:Og&&!mg?(vg=(gg=new Og).port2,gg.port1.onmessage=jg,hg=ju(vg.postMessage,vg,1)):Au.addEventListener&&"function"==typeof postMessage&&!Au.importScripts&&wg&&"file:"!==wg.protocol&&!Cu(Cg)?(hg=Cg,Au.addEventListener("message",jg,!1)):hg="onreadystatechange"in Ku("script")?function(e){qc.appendChild(Ku("script")).onreadystatechange=function(){qc.removeChild(this),_g(e)}}:function(e){setTimeout(Pg(e),0)});var Ng,Lg,Ig,Rg,Mg,Fg,Dg,zg,Bg={set:Sg,clear:xg},Ug=/web0s(?!.*chrome)/i.test(pl),Hg=Sc.f,Vg=Bg.set,$g=Au.MutationObserver||Au.WebKitMutationObserver,Wg=Au.document,qg=Au.process,Gg=Au.Promise,Kg=Hg(Au,"queueMicrotask"),Yg=Kg&&Kg.value;Yg||(Ng=function(){var e,t;for(bg&&(e=qg.domain)&&e.exit();Lg;){t=Lg.fn,Lg=Lg.next;try{t()}catch(e){throw Lg?Rg():Ig=void 0,e}}Ig=void 0,e&&e.enter()},mg||bg||Ug||!$g||!Wg?Gg&&Gg.resolve?((Dg=Gg.resolve(void 0)).constructor=Gg,zg=Dg.then,Rg=function(){zg.call(Dg,Ng)}):Rg=bg?function(){qg.nextTick(Ng)}:function(){Vg.call(Au,Ng)}:(Mg=!0,Fg=Wg.createTextNode(""),new $g(Ng).observe(Fg,{characterData:!0}),Rg=function(){Fg.data=Mg=!Mg}));var Xg,Zg,Jg,Qg,ev=Yg||function(e){var t={fn:e,next:void 0};Ig&&(Ig.next=t),Lg||(Lg=t,Rg()),Ig=t},tv=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=Pu(t),this.reject=Pu(n)},nv={f:function(e){return new tv(e)}},rv=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},ov="object"==typeof window,iv=Bg.set,av=El("species"),sv="Promise",uv=oc.get,lv=oc.set,cv=oc.getterFor(sv),fv=yg&&yg.prototype,dv=yg,pv=fv,hv=Au.TypeError,gv=Au.document,vv=Au.process,yv=nv.f,mv=yv,bv=!!(gv&&gv.createEvent&&Au.dispatchEvent),wv="function"==typeof PromiseRejectionEvent,Sv=!1,xv=Uc(sv,(function(){var e=ql(dv)!==String(dv);if(!e&&66===yl)return!0;if(yl>=51&&/native code/.test(dv))return!1;var t=new dv((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(t.constructor={})[av]=n,!(Sv=t.then((function(){}))instanceof n)||!e&&ov&&!wv})),Ev=xv||!xf((function(e){dv.all(e).catch((function(){}))})),Ov=function(e){var t;return!(!Vu(e)||"function"!=typeof(t=e.then))&&t},kv=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;ev((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,s,u,l=n[i++],c=o?l.ok:l.fail,f=l.resolve,d=l.reject,p=l.domain;try{c?(o||(2===e.rejection&&Pv(e),e.rejection=1),!0===c?a=r:(p&&p.enter(),a=c(r),p&&(p.exit(),u=!0)),a===l.promise?d(hv("Promise-chain cycle")):(s=Ov(a))?s.call(a,f,d):f(a)):d(r)}catch(e){p&&!u&&p.exit(),d(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Av(e)}))}},Tv=function(e,t,n){var r,o;bv?((r=gv.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Au.dispatchEvent(r)):r={promise:t,reason:n},!wv&&(o=Au["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=Au.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Av=function(e){iv.call(Au,(function(){var t,n=e.facade,r=e.value;if(_v(e)&&(t=rv((function(){bg?vv.emit("unhandledRejection",r,n):Tv("unhandledrejection",n,r)})),e.rejection=bg||_v(e)?2:1,t.error))throw t.value}))},_v=function(e){return 1!==e.rejection&&!e.parent},Pv=function(e){iv.call(Au,(function(){var t=e.facade;bg?vv.emit("rejectionHandled",t):Tv("rejectionhandled",t,e.value)}))},jv=function(e,t,n){return function(r){e(t,r,n)}},Cv=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,kv(e,!0))},Nv=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw hv("Promise can't be resolved itself");var r=Ov(t);r?ev((function(){var n={done:!1};try{r.call(t,jv(Nv,n,e),jv(Cv,n,e))}catch(t){Cv(n,t,e)}})):(e.value=t,e.state=1,kv(e,!1))}catch(t){Cv({done:!1},t,e)}}};if(xv&&(pv=(dv=function(e){bd(this,dv,sv),Pu(e),Xg.call(this);var t=uv(this);try{e(jv(Nv,t),jv(Cv,t))}catch(e){Cv(t,e)}}).prototype,(Xg=function(e){lv(this,{type:sv,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=hd(pv,{then:function(e,t){var n=cv(this),r=yv(Ph(this,dv));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=bg?vv.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&kv(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),Zg=function(){var e=new Xg,t=uv(e);this.promise=e,this.resolve=jv(Nv,t),this.reject=jv(Cv,t)},nv.f=yv=function(e){return e===dv||e===Jg?new Zg(e):mv(e)},"function"==typeof yg&&fv!==Object.prototype)){Qg=fv.then,Sv||(ic(fv,"then",(function(e,t){var n=this;return new dv((function(e,t){Qg.call(n,e,t)})).then(e,t)}),{unsafe:!0}),ic(fv,"catch",pv.catch,{unsafe:!0}));try{delete fv.constructor}catch(bh){}Uf&&Uf(fv,pv)}function Lv(e){Promise.resolve().then(e)}function Iv(e){var t=_p.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),o=t.offset();return{top:o.top,left:o.left,width:n,height:r}}function Rv(e){var t={top:"0",left:"0"},n=e.selection;if(null==n)return t;var r=Iv(e);if(null==r)return t;var o=r.top,i=r.left,a=r.width,s=r.height,u=_p.toDOMRange(e,n).getClientRects()[0];if(null==u)return t;u.width;var l=u.height,c={},f=u.top-o,d=u.left-i;if(d>a/2){var p=a-d;c.right=p+5+"px"}else c.left=d+5+"px";if(f>s/2){var h=s-f;c.bottom=h+5+"px"}else{var g=f+l;g<0&&(g=0),c.top=g+5+"px"}return c}function Mv(e,t,n){void 0===n&&(n="modal");var r={top:"0",left:"0"};if(null==e.selection)return r;var o=Te.isElement(t)&&e.isVoid(t),i=tp.get(t);if(null==i)return r;var a=i.getBoundingClientRect(),s=a.top,u=a.left,l=a.height,c=a.width;if(o){var f=function(e){var t=[];t.push(e);for(var n=0;t.length>0;){var r=t.pop();if(null==r)break;if(++n>1e4)break;var o=r.nodeName;if(1===r.nodeType){var i=o.toLowerCase();if(fp.includes(i)||"iframe"===i||"video"===i)return r;var a=r.children||[],s=a.length;if(s)for(var u=s-1;u>=0;u--)t.push(a[u])}}return null}(i);if(null!=f){var d=f.getBoundingClientRect();s=d.top,l=d.height}}var p=Iv(e);if(null==p)return r;var h,g=p.top,v=p.left,y=p.width,m=p.height,b={},w=s-g,S=u-v;if("bar"===n)return b.left=S+"px",w>40?b.bottom=m-w+5+"px":b.top=w+l+5+"px",b;if("modal"===n)return o?S>(y-c)/2?b.right=y-S+5+"px":b.left=S+c+5+"px":b.left=S+"px",o?((h=w)<0&&(h=0),b.top=h+"px"):w>(m-l)/2?b.bottom=m-w+5+"px":((h=w+l)<0&&(h=0),b.top=h+5+"px"),b;throw new Error("type '"+n+"' is invalid")}function Fv(e,t){Lv((function(){var n=Iv(e);if(null!=n){var r,o=n.top,i=n.left,a=n.width,s=n.height,u=t.offset(),l=u.top,c=u.left,f=t.width(),d=t.height(),p=l-o,h=c-i,g=t.attr("style");if(g.indexOf("top")>=0&&(r=p+d-s)>0){var v=t.css("top"),y=parseInt(v.toString())-r;y<0&&(y=0),t.css("top",y+"px")}if(g.indexOf("bottom")>=0&&l<0){var m=t.css("bottom"),b=parseInt(m.toString())-Math.abs(l);t.css("bottom",b+"px")}if(g.indexOf("left")>=0&&(r=h+f-a)>0){var w=t.css("left"),S=parseInt(w.toString())-r;S<0&&(S=0),t.css("left",S+"px")}if(g.indexOf("right")>=0&&c<0){var x=t.css("right"),E=parseInt(x.toString())-Math.abs(c);t.css("right",E+"px")}}}))}Vc({global:!0,wrap:!0,forced:xv},{Promise:dv}),Df(dv,sv,!1),Rh(sv),Jg=dl(sv),Vc({target:sv,stat:!0,forced:xv},{reject:function(e){var t=yv(this);return t.reject.call(void 0,e),t.promise}}),Vc({target:sv,stat:!0,forced:xv},{resolve:function(e){return function(e,t){if(Xu(e),Vu(t)&&t.constructor===e)return t;var n=nv.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Vc({target:sv,stat:!0,forced:Ev},{all:function(e){var t=this,n=yv(t),r=n.resolve,o=n.reject,i=rv((function(){var n=Pu(t.resolve),i=[],a=0,s=1;md(e,(function(e){var u=a++,l=!1;i.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,i[u]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=yv(t),r=n.reject,o=rv((function(){var o=Pu(t.resolve);md(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Dv=Cu((function(){$c(1)}));Vc({target:"Object",stat:!0,forced:Dv},{keys:function(e){return $c(Fu(e))}});var zv,Bv=Sc.f,Uv="".startsWith,Hv=Math.min,Vv=sf("startsWith"),$v=!(Vv||(zv=Bv(String.prototype,"startsWith"),!zv||zv.writable));Vc({target:"String",proto:!0,forced:!$v&&!Vv},{startsWith:function(e){var t=String(Mu(this));of(e);var n=Hu(Hv(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return Uv?Uv.call(t,r,n):t.slice(n,n+r.length)===r}});var Wv=Object.assign,qv=Object.defineProperty,Gv=!Wv||Cu((function(){if(Wu&&1!==Wv({b:1},Wv(qv({},"a",{enumerable:!0,get:function(){qv(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Wv({},e)[n]||$c(Wv({},t)).join("")!=r}))?function(e,t){for(var n=Fu(e),r=arguments.length,o=1,i=Nc.f,a=mc.f;r>o;)for(var s,u=Ru(arguments[o++]),l=i?$c(u).concat(i(u)):$c(u),c=l.length,f=0;c>f;)s=l[f++],Wu&&!a.call(u,s)||(n[s]=u[s]);return n}:Wv;Vc({target:"Object",stat:!0,forced:Object.assign!==Gv},{assign:Gv});var Kv=["props","attrs","style","dataset","on","hook"];function Yv(e){var t=e.data,n=void 0===t?{}:t,r=e.children,o=void 0===r?[]:r;Object.keys(n).forEach((function(t){var r,o,i=n[t];if("key"!==t){if(!Kv.includes(t)){if(t.startsWith("data-")){var a=t.slice(5);return a=ci(a),function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.dataset&&(n.dataset={}),Object.assign(n.dataset,t)}(e,((r={})[a]=i,r)),void delete n[t]}!function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,t)}(e,(o={},o[t]=i,o)),delete n[t]}}else e.key=i})),o.length>0&&o.forEach((function(e){"string"!=typeof e&&Yv(e)}))}var Xv=[];var Zv={};function Jv(e,t,n){return mo(n.isInline(e)?"span":"div",null,t)}function Qv(e,t){return void 0===t&&(t=!1),mo("span",{"data-slate-string":!0},e,t?"\n":null)}function ey(e,t){return void 0===e&&(e=0),void 0===t&&(t=!1),mo("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\ufeff",t?mo("br",null):null)}function ty(e,t,n,r){return Xd.set(e,t),Zd.set(e,n),Te.isElement(e)?function(e,t){var n,r=_p.findKey(t,e),o=t.isInline(e),i=je.isVoid(t,e),a=mh(r.id),s={id:a,key:r.id,"data-slate-node":"element","data-slate-inline":o},u=e.type,l=e.children,c=void 0===l?[]:l,f=function(e){return Zv[e]||Jv}(u);n=i?null:c.map((function(n,r){return ty(n,r,e,t)}));var d=f(e,n,t);if(i){s["data-slate-void"]=!0;var p=o?"span":"div",h=sd(Ie.texts(e),1),g=sd(h[0],1)[0],v=mo(p,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},ty(g,0,e,t));d=mo(p,null,d,v),Xd.set(g,0),Zd.set(g,e)}return null==d.data&&(d.data={}),Object.assign(d.data,s),i||o||(d=function(e,t){var n=t;return Xv.forEach((function(r){n=r(e,t)})),n}(e,d)),Lv((function(){var t=document.getElementById(a);null!=t&&(ep.set(r,t),tp.set(e,t),Qd.set(t,e))})),d}(e,r):function(e,t,n){if(null==e.text)throw new Error("Current node is not slate Text "+JSON.stringify(e));var r=_p.findKey(n,e),o=n.getConfig().decorate;if(null==o)throw new Error("Can not get config.decorate");var i=_p.findPath(n,e),a=o([e,i]),s=Ye.decorations(e,a),u=s.map((function(r,o){var i=function(e,t,n,r,o){void 0===t&&(t=!1);var i=e.text,a=_p.findPath(o,n),s=De.parent(a);if(je.isEditor(r))throw new Error("Text node "+JSON.stringify(n)+" parent is Editor");return o.isVoid(r)?ey(Ie.string(r).length):""!==i||r.children[r.children.length-1]!==n||o.isInline(r)||""!==je.string(o,s)?""===i?ey():t&&"\n"===i.slice(-1)?Qv(i,!0):Qv(i):ey(0,!0)}(r,o===s.length-1,e,t,n);return mo("span",{"data-slate-leaf":!0},i=function(e,t){var n=t;return Xv.forEach((function(t){n=t(e,n)})),n}(r,i))})),l=function(e){return"w-e-text-"+e}(r.id),c=mo("span",{"data-slate-node":"text",id:l,key:r.id},u);return Lv((function(){var t=document.getElementById(l);null!=t&&(ep.set(r,t),tp.set(e,t),Qd.set(t,e))})),c}(e,n,r)}function ny(e,t){var n,r=e.$scroll,o=function(e){return"w-e-textarea-"+e}(e.id),i=t.getConfig(),a=i.readOnly,s=i.autoFocus,u=function(e,t){return void 0===t&&(t=!1),Qr("div#"+e,{props:{contentEditable:!t}})}(o,a),l=t.children||[];u.children=l.map((function(e,n){var r=ty(e,n,t,t);return Yv(r),r}));var c=Gd.get(e);if(null==c&&(c=!0),c){var f=function(e,t){return Ln('<div\n        id="'+e+'"\n        data-slate-editor\n        data-slate-node="value"\n        suppressContentEditableWarning\n        data-gramm="false"\n        role="textarea"\n        spellCheck="true"\n        autoCorrect="true"\n        autoCapitalize="true"\n    ></div>')}(o);r.append(f),e.$textArea=f,n=f[0],(p=Zr([to,co,vo,oo,uo]))(n,u),Gd.set(e,!1),Kd.set(e,p)}else{var d=Yd.get(e),p=Kd.get(e);if(null==d||null==p)return;p(d,u)}if(null!=n||null!=(n=document.getElementById(o))){if((c?s:t.isFocused())&&n.focus({preventScroll:!0}),c){var h=dp(n);h&&rp.set(t,h)}Jd.set(t,n),tp.set(t,n),Qd.set(n,t),Yd.set(e,u)}}function ry(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function oy(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function iy(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return oy(n.overflowY,t)||oy(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function ay(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}function sy(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,u="function"==typeof a?a:function(e){return e!==a};if(!ry(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;ry(f)&&u(f);){if((f=f.parentElement)===l){c.push(f);break}null!=f&&f===document.body&&iy(f)&&!iy(document.documentElement)||null!=f&&iy(f,s)&&c.push(f)}for(var d=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),y=v.height,m=v.width,b=v.top,w=v.right,S=v.bottom,x=v.left,E="start"===o||"nearest"===o?b:"end"===o?S:b+y/2,O="center"===i?x+m/2:"end"===i?w:x,k=[],T=0;T<c.length;T++){var A=c[T],_=A.getBoundingClientRect(),P=_.height,j=_.width,C=_.top,N=_.right,L=_.bottom,I=_.left;if("if-needed"===r&&b>=0&&x>=0&&S<=p&&w<=d&&b>=C&&S<=L&&x>=I&&w<=N)return k;var R=getComputedStyle(A),M=parseInt(R.borderLeftWidth,10),F=parseInt(R.borderTopWidth,10),D=parseInt(R.borderRightWidth,10),z=parseInt(R.borderBottomWidth,10),B=0,U=0,H="offsetWidth"in A?A.offsetWidth-A.clientWidth-M-D:0,V="offsetHeight"in A?A.offsetHeight-A.clientHeight-F-z:0;if(l===A)B="start"===o?E:"end"===o?E-p:"nearest"===o?ay(g,g+p,p,F,z,g+E,g+E+y,y):E-p/2,U="start"===i?O:"center"===i?O-d/2:"end"===i?O-d:ay(h,h+d,d,M,D,h+O,h+O+m,m),B=Math.max(0,B+g),U=Math.max(0,U+h);else{B="start"===o?E-C-F:"end"===o?E-L+z+V:"nearest"===o?ay(C,L,P,F,z+V,E,E+y,y):E-(C+P/2)+V/2,U="start"===i?O-I-M:"center"===i?O-(I+j/2)+H/2:"end"===i?O-N+D+H:ay(I,N,j,M,D+H,O,O+m,m);var $=A.scrollLeft,W=A.scrollTop;E+=W-(B=Math.max(0,Math.min(W+B,A.scrollHeight-P+V))),O+=$-(U=Math.max(0,Math.min($+U,A.scrollWidth-j+H)))}k.push({el:A,top:B,left:U})}return k}function uy(e){return e===Object(e)&&0!==Object.keys(e).length}function ly(e,t){return hp(t)&&_p.hasDOMNode(e,t,{editable:!0})}function cy(e,t){var n=fy(e,t)&&_p.toSlateNode(e,t);return je.isVoid(e,n)}function fy(e,t){return hp(t)&&_p.hasDOMNode(e,t)}var dy=Sc.f,py="".endsWith,hy=Math.min,gy=sf("endsWith"),vy=!gy&&!!function(){var e=dy(String.prototype,"endsWith");return e&&!e.writable}();Vc({target:"String",proto:!0,forced:!vy&&!gy},{endsWith:function(e){var t=String(Mu(this));of(e);var n=arguments.length>1?arguments[1]:void 0,r=Hu(t.length),o=void 0===n?r:hy(Hu(n),r),i=String(e);return py?py.call(t,i,o):t.slice(o-i.length,o)===i}});var yy=new WeakMap,my=new WeakMap,by={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},wy={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},Sy={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},xy=function(e){var t=by[e],n=wy[e],r=Sy[e],o=t&&wi(t),i=n&&wi(n),a=r&&wi(r);return function(e){return!(!o||!o(e))||!!(Sp&&i&&i(e))||!(Sp||!a||!a(e))}},Ey={isBold:xy("bold"),isCompose:xy("compose"),isMoveBackward:xy("moveBackward"),isMoveForward:xy("moveForward"),isDeleteBackward:xy("deleteBackward"),isDeleteForward:xy("deleteForward"),isDeleteLineBackward:xy("deleteLineBackward"),isDeleteLineForward:xy("deleteLineForward"),isDeleteWordBackward:xy("deleteWordBackward"),isDeleteWordForward:xy("deleteWordForward"),isExtendBackward:xy("extendBackward"),isExtendForward:xy("extendForward"),isExtendLineBackward:xy("extendLineBackward"),isExtendLineForward:xy("extendLineForward"),isItalic:xy("italic"),isMoveLineBackward:xy("moveLineBackward"),isMoveLineForward:xy("moveLineForward"),isMoveWordBackward:xy("moveWordBackward"),isMoveWordForward:xy("moveWordForward"),isRedo:xy("redo"),isSplitBlock:xy("splitBlock"),isTransposeCharacter:xy("transposeCharacter"),isUndo:xy("undo"),isTab:xy("tab"),isSelectAll:xy("selectAll")};function Oy(e){e.preventDefault()}var ky={beforeinput:function(e,t,n){var r=e,o=n.getConfig().readOnly;if(Ap&&!o&&ly(n,r.target)){var i=n.selection,a=r.inputType,s=r.dataTransfer||r.data||void 0;if("insertCompositionText"!==a&&"deleteCompositionText"!==a){if(r.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var u=sd(r.getTargetRanges(),1)[0];if(u){var l=_p.toSlateRange(n,u,{exactMatch:!1});i&&We.equals(i,l)||ct.select(n,l)}}if(i&&We.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";je.deleteFragment(n,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":je.deleteFragment(n);break;case"deleteContent":case"deleteContentForward":je.deleteForward(n);break;case"deleteContentBackward":je.deleteBackward(n);break;case"deleteEntireSoftLine":je.deleteBackward(n,{unit:"line"}),je.deleteForward(n,{unit:"line"});break;case"deleteHardLineBackward":je.deleteBackward(n,{unit:"block"});break;case"deleteSoftLineBackward":je.deleteBackward(n,{unit:"line"});break;case"deleteHardLineForward":je.deleteForward(n,{unit:"block"});break;case"deleteSoftLineForward":je.deleteForward(n,{unit:"line"});break;case"deleteWordBackward":je.deleteBackward(n,{unit:"word"});break;case"deleteWordForward":je.deleteForward(n,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":je.insertBreak(n);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if("insertFromPaste"===a&&!up.get(n))break;s instanceof DataTransfer?n.insertData(s):"string"==typeof s&&je.insertText(n,s)}}}},blur:function(e,t,n){var r=e,o=t.isUpdatingSelection,i=t.latestElement;if(!n.getConfig().readOnly&&!o&&ly(n,r.target)){var a=_p.findDocumentOrShadowRoot(n);if(i!==a.activeElement){var s=r.relatedTarget;if(!(s===_p.toDOMNode(n,n)||pp(s)&&s.hasAttribute("data-slate-spacer"))){if(null!=s&&hp(s)&&_p.hasDOMNode(n,s)){var u=_p.toSlateNode(n,s);if(Te.isElement(u)&&!n.isVoid(u))return}if(Ep){var l=a.getSelection();null==l||l.removeAllRanges()}op.delete(n)}}}},focus:function(e,t,n){var r=_p.toDOMNode(n,n),o=_p.findDocumentOrShadowRoot(n);t.latestElement=o.activeElement,xp&&e.target!==r?r.focus():op.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&fy(n,e.target)&&hp(e.target)){var r=_p.toSlateNode(n,e.target),o=_p.findPath(n,r),i=je.start(n,o),a=je.end(n,o),s=je.void(n,{at:i}),u=je.void(n,{at:a});if(s&&u&&De.equals(s[1],u[1])){var l=je.range(n,i);ct.select(n,l)}}},compositionstart:function(e,t,n){if(ly(n,e.target)){var r=n.selection;if(r&&We.isExpanded(r)&&je.deleteFragment(n),r&&We.isCollapsed(r)){var o=_p.toDOMRange(n,r).startContainer,i=o.textContent||"";yy.set(n,i),my.set(n,o)}t.isComposing=!0}},compositionend:function(e,t,n){var r=e;if(ly(n,r.target)){t.isComposing=!1;var o=n.selection;if(null!=o){if(Ep||xp)for(var i=We.isBackward(o)?o.focus:o.anchor,a=sd(je.node(n,[i.path[0]]),1)[0],s=0;s<i.path.length;s++){var u=sd(je.node(n,i.path.slice(0,s+1)),1)[0];if(Te.isElement(u)&&"link"===u.type){_p.setNewKey(a);break}}var l=r.data;if(_p.checkMaxLength(n,l))return _p.toDOMRange(n,o).startContainer.textContent=yy.get(n)||"",void t.changeViewState();l&&je.insertText(n,l),Tp&&_p.cleanExposedTexNodeInSelectionBlock(n),Ep||setTimeout((function(){var e=n.selection;if(null!=e){var t=my.get(n);null!=t&&_p.toDOMRange(n,e).startContainer!==t&&(t.textContent=yy.get(n)||"")}}))}}},compositionupdate:function(e,t,n){ly(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&ly(n,r.target)){if(function(e,t){var n=Ud.get(e),r=n&&n.getMenus(),o=Vd.get(e),i=o&&o.getMenus(),a=id(id({},r),i);for(var s in a){var u=a[s],l=u.hotkey;if(l&&bi(l,t)&&!u.isDisabled(e)){var c=u.getValue(e);u.exec(e,c)}}}(n,r),Ey.isTab(r))return Oy(r),void n.handleTab();if(Ey.isRedo(r))return Oy(r),void("function"==typeof n.redo&&n.redo());if(Ey.isUndo(r))return Oy(r),void("function"==typeof n.undo&&n.undo());if(Ey.isMoveLineBackward(r))return Oy(r),void ct.move(n,{unit:"line",reverse:!0});if(Ey.isMoveLineForward(r))return Oy(r),void ct.move(n,{unit:"line"});if(Ey.isExtendLineBackward(r))return Oy(r),void ct.move(n,{unit:"line",edge:"focus",reverse:!0});if(Ey.isExtendLineForward(r))return Oy(r),void ct.move(n,{unit:"line",edge:"focus"});if(Ey.isMoveBackward(r))return Oy(r),void(o&&We.isCollapsed(o)?ct.move(n,{reverse:!0}):ct.collapse(n,{edge:"start"}));if(Ey.isMoveForward(r))return Oy(r),void(o&&We.isCollapsed(o)?ct.move(n):ct.collapse(n,{edge:"end"}));if(Ey.isMoveWordBackward(r))return Oy(r),o&&We.isExpanded(o)&&ct.collapse(n,{edge:"focus"}),void ct.move(n,{unit:"word",reverse:!0});if(Ey.isMoveWordForward(r))return Oy(r),o&&We.isExpanded(o)&&ct.collapse(n,{edge:"focus"}),void ct.move(n,{unit:"word"});if(Ey.isSelectAll(r)){Oy(r);var i=je.start(n,[]),a=je.end(n,[]);ct.select(n,{anchor:i,focus:a})}else if(Ap){if((Tp||Ep)&&o&&(Ey.isDeleteBackward(r)||Ey.isDeleteForward(r))&&We.isCollapsed(o)){var s=Ie.parent(n,o.anchor.path);if(Te.isElement(s)&&je.isVoid(n,s)&&je.isInline(n,s))return r.preventDefault(),void ct.delete(n,{unit:"block"})}}else{if(Ey.isBold(r)||Ey.isItalic(r)||Ey.isTransposeCharacter(r))return void Oy(r);if(Ey.isSplitBlock(r))return Oy(r),void je.insertBreak(n);if(Ey.isDeleteBackward(r))return Oy(r),void(o&&We.isExpanded(o)?je.deleteFragment(n,{direction:"backward"}):je.deleteBackward(n));if(Ey.isDeleteForward(r))return Oy(r),void(o&&We.isExpanded(o)?je.deleteFragment(n,{direction:"forward"}):je.deleteForward(n));if(Ey.isDeleteLineBackward(r))return Oy(r),void(o&&We.isExpanded(o)?je.deleteFragment(n,{direction:"backward"}):je.deleteBackward(n,{unit:"line"}));if(Ey.isDeleteLineForward(r))return Oy(r),void(o&&We.isExpanded(o)?je.deleteFragment(n,{direction:"forward"}):je.deleteForward(n,{unit:"line"}));if(Ey.isDeleteWordBackward(r))return Oy(r),void(o&&We.isExpanded(o)?je.deleteFragment(n,{direction:"backward"}):je.deleteBackward(n,{unit:"word"}));if(Ey.isDeleteWordForward(r))return Oy(r),void(o&&We.isExpanded(o)?je.deleteFragment(n,{direction:"forward"}):je.deleteForward(n,{unit:"word"}))}}},keypress:function(e,t,n){if(!Ap&&!n.getConfig().readOnly&&ly(n,e.target)){e.preventDefault();var r=e.key;je.insertText(n,r)}},copy:function(e,t,n){var r=e;if(ly(n,r.target)){r.preventDefault();var o=r.clipboardData;null!=o&&n.setFragmentData(o)}},cut:function(e,t,n){var r=e,o=n.selection;if(!n.getConfig().readOnly&&ly(n,r.target)){r.preventDefault();var i=r.clipboardData;if(null!=i&&(n.setFragmentData(i),o))if(We.isExpanded(o))je.deleteFragment(n);else{var a=Ie.parent(n,o.anchor.path);je.isVoid(n,a)&&ct.delete(n)}}},paste:function(e,t,n){up.set(n,!0);var r=e;if(!n.getConfig().readOnly&&ly(n,r.target)){var o=n.getConfig().customPaste;if(o&&!o(n,r))return void up.set(n,!1);if(!Ap||function(e){return e.clipboardData&&""!==e.clipboardData.getData("text/plain")&&1===e.clipboardData.types.length}(r)){r.preventDefault();var i=r.clipboardData;null!=i&&n.insertData(i)}}},dragover:function(e,t,n){if(fy(n,e.target)){var r=_p.toSlateNode(n,e.target);je.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(fy(n,r.target)){var o=_p.toSlateNode(n,r.target),i=_p.findPath(n,o);if(je.isVoid(n,o)||je.void(n,{at:i,voids:!0})){var a=je.range(n,i);ct.select(n,a)}var s=r.dataTransfer;null!=s&&(t.isDraggingInternally=!0,n.setFragmentData(s))}},dragend:function(e,t,n){var r=e;n.getConfig().readOnly||t.isDraggingInternally&&fy(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,o=r.dataTransfer;if(!n.getConfig().readOnly&&fy(n,r.target)&&null!=o&&!(Ap&&Ep&&o.files.length>0)){r.preventDefault();var i=n.selection,a=_p.findEventRange(n,r);ct.select(n,a),t.isDraggingInternally&&(i&&ct.delete(n,{at:i}),t.isDraggingInternally=!1),n.insertData(o),n.isFocused()||n.focus()}}},Ty=1,Ay=function(){function e(e){var t=this;this.id=Ty++,this.$textArea=null,this.$progressBar=Ln('<div class="w-e-progress-bar"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=Br((function(){var e=t.editorInstance;!function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,o=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||o)){var i=_p.findDocumentOrShadowRoot(t),a=i.activeElement,s=_p.toDOMNode(t,t),u=i.getSelection();if(a===s?(e.latestElement=a,op.set(t,!0)):op.delete(t),!u)return ct.deselect(t);var l=u.anchorNode,c=u.focusNode,f=ly(t,l)||cy(t,l),d=ly(t,c)||cy(t,c);if(f&&d){var p=_p.toSlateRange(t,u,{exactMatch:!1});ct.select(t,p)}else ct.deselect(t)}}(t,e)}),100);var n=Ln(e);if(0===n.length)throw new Error("Cannot find textarea DOM by selector '"+e+"'");this.$box=n;var r=Ln('<div class="w-e-text-container"></div>');r.append(this.$progressBar),n.append(r);var o=Ln('<div class="w-e-scroll"></div>');r.append(o),this.$scroll=o,this.$textAreaContainer=r,Lv((function(){var e=t.editorInstance,n=_p.getWindow(e);n.document.addEventListener("selectionchange",t.onDOMSelectionChange),e.on("destroyed",(function(){n.document.removeEventListener("selectionchange",t.onDOMSelectionChange)})),r.on("mousedown",(function(){return e.hidePanelOrModal()})),e.on("change",t.changeViewState.bind(t));var o=e.getConfig().onChange;o&&e.on("change",(function(){return o(e)})),t.onFocusAndOnBlur(),t.bindEvent()}))}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var e=zd.get(this);if(null==e)throw new Error("Can not get editor instance");return e},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var e=this,t=this.$textArea,n=this.$scroll,r=this.editorInstance;null!=t&&(Or(ky,(function(n,o){t.on(o,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",Br((function(){r.emit("scroll")}),100))))},e.prototype.onFocusAndOnBlur=function(){var e=this,t=this.editorInstance,n=t.getConfig(),r=n.onBlur,o=n.onFocus;this.latestEditorSelection=t.selection,t.on("change",(function(){null==e.latestEditorSelection&&null!=t.selection?o&&o(t):null!=e.latestEditorSelection&&null==t.selection&&r&&r(t),e.latestEditorSelection=t.selection}))},e.prototype.changeViewState=function(){var e=this,t=this.editorInstance;ny(this,t),function(e,t){var n,r=t.getConfig().placeholder;if(r){var o=t.isEmpty();if(o&&!e.showPlaceholder){if(null==e.$placeholder){var i=Ln('<div class="w-e-text-placeholder">'+r+"</div>");e.$textAreaContainer.append(i),e.$placeholder=i}return e.$placeholder.show(),void(e.showPlaceholder=!0)}!o&&e.showPlaceholder&&(null===(n=e.$placeholder)||void 0===n||n.hide(),e.showPlaceholder=!1)}}(this,t),Lv((function(){!function(e,t){var n=t.selection,r=_p.findDocumentOrShadowRoot(t).getSelection();if(r&&!e.isComposing&&t.isFocused()){var o="None"!==r.type;if(n||o){var i=Jd.get(t),a=!1;if(i.contains(r.anchorNode)&&i.contains(r.focusNode)&&(a=!0),o&&a&&n){var s=_p.toSlateRange(t,r,{exactMatch:!0});if(s&&We.equals(s,n)){var u=!0;if(We.isCollapsed(n)){var l=r.anchorNode,c=r.anchorOffset;if(l===i){var f=i.childNodes,d=void 0;(d=f[c])&&d.matches("table")&&(u=!1),(d=f[c-1])&&d.matches("table")&&(u=!1)}}if(u)return}}if(!n||_p.hasRange(t,n)){e.isUpdatingSelection=!0;var p=n&&_p.toDOMRange(t,n);if(p){We.isBackward(n)?r.setBaseAndExtent(p.endContainer,p.endOffset,p.startContainer,p.startOffset):r.setBaseAndExtent(p.startContainer,p.startOffset,p.endContainer,p.endOffset);var h=p.startContainer.parentElement;h.getBoundingClientRect=p.getBoundingClientRect.bind(p),function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(uy(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:sy(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:uy(e)?e:{block:"start",inline:"nearest"}}(t);(function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))})(sy(e,r),r.behavior)}}(h,{scrollMode:"if-needed",boundary:i}),delete h.getBoundingClientRect}else r.removeAllRanges();setTimeout((function(){p&&xp&&i.focus(),e.isUpdatingSelection=!1}))}else t.selection=_p.toSlateRange(t,r,{exactMatch:!1})}}}(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function _y(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&_y(t)}function Py(){return Ln('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function jy(){return Ln('<div class="w-e-bar-divider"></div>')}function Cy(e,t,n,r,o){if(void 0===o&&(o=!1),t){if(r){var i=Sp?"cmd":"ctrl";r=r.replace("mod",i)}if(o)r&&(e.attr("data-tooltip",r),e.addClass("w-e-menu-tooltip"),e.addClass("tooltip-right"));else{var a=r?n+"\n"+r:n;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip")}}}ah("match",1,(function(e,t,n){return[function(t){var n=Mu(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var o=Xu(e),i=String(this);if(!o.global)return hh(o,i);var a=o.unicode;o.lastIndex=0;for(var s,u=[],l=0;null!==(s=hh(o,i));){var c=String(s[0]);u[l]=c,""===c&&(o.lastIndex=uh(i,Hu(o.lastIndex),a)),l++}return 0===l?null:u}]}));var Ny=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.$elem=Ln('<div class="w-e-bar-item"></div>'),this.$button=Ln('<button type="button"></button>'),this.disabled=!1,this.menu=e;var r=e.tag,o=e.width;if("button"!==r)throw new Error("Invalid tag '"+r+"', expected 'button'");var i=e.title,a=e.hotkey,s=void 0===a?"":a,u=e.iconSvg,l=void 0===u?"":u,c=this.$button;if(l){var f=Ln(l);_y(f),c.append(f)}else c.text(i);Cy(c,l,i,s,t),t&&l&&c.append(Ln('<span class="title">'+i+"</span>")),o&&c.css("width",o+"px"),this.$elem.append(c),Lv((function(){return n.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on("mousedown",(function(t){t.preventDefault(),Wy(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=Wy(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=Wy(this),t=this.$button,n="active";this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=Wy(this),t=this.$button,n=this.menu.isDisabled(e);(null==e.selection||e.isDisabled())&&(n=!0);var r="disabled";n?t.addClass(r):t.removeClass(r),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e}(),Ly=function(e){function t(t,n){return void 0===n&&(n=!1),e.call(this,t,n)||this}return od(t,e),t.prototype.onButtonClick=function(){},t}(Ny),Iy=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=Wd.get(e);null==t&&(t=new Set,Wd.set(e,t)),t.add(this)},e.prototype.renderContent=function(e){var t=this.$elem;t.html(""),t.append(e);var n=this.genSelfElem();n&&t.append(n)},e.prototype.appendTo=function(e){var t=this.$elem;e.append(t)},e.prototype.show=function(){this.isShow||(this.showTime=Date.now(),this.$elem.show(),this.isShow=!0)},e.prototype.hide=function(){this.isShow&&(Date.now()-this.showTime<200||(this.$elem.hide(),this.isShow=!1))},e}(),Ry=function(e){function t(t){var n=e.call(this,t)||this;return n.$elem=Ln('<div class="w-e-drop-panel"></div>'),n}return od(t,e),t.prototype.genSelfElem=function(){return null},t}(Iy),My=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this,t,n)||this;if(r.dropPanel=null,r.menu=t,t.showDropPanel){var o=Py();r.$button.append(o)}return r}return od(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var e=this.menu;if(null!=e.getPanelContentElem){var t=Wy(this);if(null==this.dropPanel){var n=new Ry(t),r=e.getPanelContentElem(t);n.renderContent(r),n.appendTo(this.$elem),n.show(),this.dropPanel=n}else{var o=this.dropPanel;o.isShow?o.hide():(r=e.getPanelContentElem(t),o.renderContent(r),o.show())}var i=this.dropPanel;if(i.isShow){var a=this.$elem,s=a.offset().left,u=a.parents(".w-e-bar");s-u.offset().left>=u.width()/2?i.$elem.css({left:"none",right:"0"}):i.$elem.css({left:"0",right:"none"})}}},t}(Ny),Fy=function(e){function t(t,n){void 0===n&&(n=0);var r=e.call(this,t)||this;r.$elem=Ln('<div class="w-e-modal"></div>'),r.width=0,n&&(r.width=n);var o=r.$elem;return o.on("mousedown",(function(e){return e.stopPropagation()})),o.on("keyup",(function(e){"Escape"===e.code&&(r.hide(),t.restoreSelection())})),r}return od(t,e),t.prototype.genSelfElem=function(){var e=this,t=Ln('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>');return t.on("click",(function(){return e.hide()})),t},t.prototype.setStyle=function(e){var t=this.width,n=this.$elem;n.attr("style",""),t&&n.css("width",t+"px"),n.css(e)},t}(Iy);function Dy(e,t,n){var r=Ln('<label class="babel-container"></label>');r.append("<span>"+e+"</span>");var o=Ln('<input type="text" id="'+t+'" placeholder="'+(n||"")+'">');return r.append(o),[r,o]}function zy(e,t){var n=Ln('<div class="button-container"></div>'),r=Ln('<button type="button" id="'+e+'">'+t+"</button>");return n.append(r),[n,r]}var By=function(e){function t(t,n){void 0===n&&(n=!1);var r=e.call(this,t,n)||this;return r.modal=null,r.menu=t,r}return od(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=Wy(this),t=this.menu.getModalPositionNode(e);return Te.isElement(t)?Mv(e,t,"modal"):Rv(e)},t.prototype.handleModal=function(){var e=Wy(this),t=this.menu;if(null==this.modal){var n=new Fy(e,t.modalWidth);this.renderAndShowModal(n,!0),this.modal=n}else(n=this.modal).isShow?n.hide():this.renderAndShowModal(n,!1)},t.prototype.renderAndShowModal=function(e,t){void 0===t&&(t=!1);var n=Wy(this),r=this.menu;if(null!=r.getModalContentElem){var o=_p.getTextarea(n),i=r.getModalContentElem(n);e.renderContent(i);var a=this.getPosition();e.setStyle(a),t&&e.appendTo(o.$textAreaContainer),e.show(),Fv(n,e.$elem)}},t}(Ny),Uy=function(e){function t(t,n){var r=e.call(this,t)||this;return r.$elem=Ln('<div class="w-e-select-list"></div>'),n&&r.$elem.css("width",n+"px"),r}return od(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.html("");var n=Ln("<ul></ul>");e.forEach((function(e){var t=e.value,r=e.text,o=e.selected,i=e.styleForRenderMenuList,a=Ln('<li data-value="'+t+'"></li>');if(i&&a.css(i),o){var s=Ln('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');a.append(s),a.addClass("selected")}a.append(Ln('<span data-value="'+t+'">'+r+"</span>")),n.append(a)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(Iy),Hy=function(){function e(e,t){var n=this;void 0===t&&(t=!1),this.$elem=Ln('<div class="w-e-bar-item"></div>'),this.$button=Ln('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var r=e.tag,o=e.title,i=e.width,a=e.iconSvg,s=void 0===a?"":a,u=e.hotkey,l=void 0===u?"":u;if("select"!==r)throw new Error("Invalid tag '"+r+"', expected 'select'");var c=this.$button;i&&c.css("width",i+"px"),Cy(c,s,o,l,t),this.$elem.append(c),this.menu=e,Lv((function(){return n.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on("mousedown",(function(t){t.preventDefault(),Wy(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=Wy(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(null==this.selectList){this.selectList=new Uy(t,n.selectPanelWidth);var r=this.selectList,o=n.getOptions(t);r.renderList(o),r.appendTo(this.$elem),r.show(),r.$elem.on("mousedown","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Ln(n).attr("data-value");e.onChange(r)}}))}else(r=this.selectList).isShow?r.hide():(o=n.getOptions(t),r.renderList(o),r.show())}},e.prototype.onChange=function(e){var t=Wy(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=Wy(this),t=this.menu,n=t.getValue(e),r=function(e,t){for(var n=e.length,r="",o=0;o<n;o++){var i=e[o];if(i.value===t){r=i.text;break}}return r}(t.getOptions(e),n.toString()),o=this.$button,i=Py();o.html(""),o.text(r),o.append(i)},e.prototype.setDisabled=function(){var e=Wy(this),t=this.menu.isDisabled(e),n=this.$button;(null==e.selection||e.isDisabled())&&(t=!0);var r="disabled";t?n.addClass(r):n.removeClass(r),this.disabled=t},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e}(),Vy=function(){function e(e){this.$elem=Ln('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=Ln('<div class="w-e-bar-item-menus-container"></div>'),this.$button=Ln('<button type="button"></button>');var t=e.iconSvg,n=e.title,r=this.$elem,o=this.$button;if(t){var i=Ln(t);_y(i),o.append(i)}else o.text(n);var a=Py();o.append(a),r.append(o);var s=this.$container;r.append(s);var u=this.createObserver();this.observe(u)}return e.prototype.appendBarItem=function(e){var t=e.$elem;this.$container.append(t)},e.prototype.observe=function(e){var t=this.$container;e.observe(t[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var e=this,t=this.$container,n=this.$button,r=new MutationObserver((function(){var o=t.find("button"),i=o.length;if(0!==i){var a=0;o.each((function(e){Ln(e).hasClass("disabled")&&a++})),r.disconnect(),a===i?n.addClass("disabled"):n.removeClass("disabled"),e.observe(r)}}));return r},e}(),$y=new WeakMap;function Wy(e){var t=$d.get(e);if(null==t)throw new Error("Can not get editor instance");return t}function qy(e,t){void 0===t&&(t=!1);var n=$y.get(e);if(n)return n;var r=e.tag;if("button"===r){var o=e.showDropPanel,i=e.showModal;n=o?new My(e,t):i?new By(e,t):new Ly(e,t)}if("select"===r&&(n=new Hy(e,t)),null==n)throw new Error("Invalid tag in menu "+JSON.stringify(e));return $y.set(e,n),n}var Gy=function(){function e(){var e=this;this.$elem=Ln('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=Ri((function(){var t=e.isShow,n=e.getSelectedNodeAndMenuKeys()||{},r=n.node,o=void 0===r?null:r,i=n.menuKeys,a=void 0===i?[]:i;null!=o&&e.changeItemsState(),o&&Te.isElement(o)&&t&&e.isSamePath(o,e.prevSelectedNode)||(e.hideAndClean(),null!=o&&(e.registerItems(a),e.setPosition(o),e.show()),e.prevSelectedNode=o)}),200),Lv((function(){var t=e.getEditorInstance(),n=e.$elem;n.on("mousedown",(function(e){return e.preventDefault()})),_p.getTextarea(t).$textAreaContainer.append(n),t.on("change",e.changeHoverbarState);var r=e.hideAndClean.bind(e);t.on("scroll",r),t.on("fullScreen",r),t.on("unFullScreen",r)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var e=this.$elem;e.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],e.html(""),this.isShow=!1},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0},e.prototype.changeItemsState=function(){var e=this;Lv((function(){e.hoverbarItems.forEach((function(e){e.changeMenuState()}))}))},e.prototype.registerItems=function(e){var t=this,n=this.$elem;e.forEach((function(e){if("|"!==e)t.registerSingleItem(e);else{var r=jy();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(null==r){var o=Cp[e];if(null==o)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof o)throw new Error("Menu item factory (key='"+e+"') is not a function");r=o(),n[e]=r}var i=qy(r);this.hoverbarItems.push(i),$d.set(i,t),this.$elem.append(i.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),Te.isElement(e)){var r=Mv(t,e,"bar");return n.css(r),void Fv(t,n)}if(Ye.isText(e))return r=Rv(t),n.css(r),void Fv(t,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var e=this.getEditorInstance();if(null==e.selection)return null;var t=this.getHoverbarKeysConf(),n=null,r=[];return t.some((function(t){var o=t.match,i=t.menuKeys,a=sd(je.nodes(e,{match:function(t){return o(e,t)},universal:!0}),1)[0];if(null!=a)return n=a[0],r=i,!0})),null==n?null:{node:n,menuKeys:r}},e.prototype.getEditorInstance=function(){var e=Hd.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.getHoverbarKeysConf=function(){return this.getEditorInstance().getConfig().hoverbarKeys||[]},e.prototype.isSamePath=function(e,t){if(null==e||null==t)return!1;var n=_p.findPath(null,e),r=_p.findPath(null,t);return De.equals(n,r)},e.prototype.destroy=function(){this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function Ky(e,t,n){var r=Ln(n);return!!r.attr(t)||(r.attr(t,"true"),e.on("destroyed",(function(){r.removeAttr(t)})),!1)}function Yy(e){var t=e.textareaSelector,n=void 0===t?"":t,r=e.config,o=void 0===r?{}:r,i=e.content,a=e.plugins,s=void 0===a?[]:a,u=(e=>{var t=e,{apply:n}=t;return t.history={undos:[],redos:[]},t.redo=()=>{var{history:e}=t,{redos:n}=e;if(n.length>0){var r=n[n.length-1];zl.withoutSaving(t,(()=>{je.withoutNormalizing(t,(()=>{for(var e of r)t.apply(e)}))})),e.redos.pop(),e.undos.push(r)}},t.undo=()=>{var{history:e}=t,{undos:n}=e;if(n.length>0){var r=n[n.length-1];zl.withoutSaving(t,(()=>{je.withoutNormalizing(t,(()=>{var e=r.map(Fe.inverse).reverse();for(var n of e)t.apply(n)}))})),e.redos.push(r),e.undos.pop()}},t.apply=e=>{var{operations:r,history:o}=t,{undos:i}=o,a=i[i.length-1],s=a&&a[a.length-1],u=((e,t)=>!(!t||"set_selection"!==e.type||"set_selection"!==t.type))(e,s),l=zl.isSaving(t),c=zl.isMerging(t);if(null==l&&(l=((e,t)=>"set_selection"!==e.type||null!=e.properties&&null!=e.newProperties)(e)),l){if(null==c&&(c=null!=a&&(0!==r.length||((e,t)=>"set_selection"===e.type||!(!t||"insert_text"!==e.type||"insert_text"!==t.type||e.offset!==t.offset+t.text.length||!De.equals(e.path,t.path))||!(!t||"remove_text"!==e.type||"remove_text"!==t.type||e.offset+e.text.length!==t.offset||!De.equals(e.path,t.path)))(e,s)||u)),a&&c)u&&a.pop(),a.push(e);else{var f=[e];i.push(f)}for(;i.length>100;)i.shift();(e=>"set_selection"!==e.type)(e)&&(o.redos=[])}n(e)},t})(function(e){var t=e;return t.on=function(e,n){var r=sg(t);if(r.on(e,n),"destroyed"===e&&lg(t,n),"destroyed"!==e){var o=function(){return r.off(e,n)};r.on("destroyed",o),lg(t,o)}},t.once=function(e,n){sg(t).once(e,n)},t.off=function(e,n){sg(t).off(e,n)},t.emit=function(e){var n=sg(t);n.emit(e),"destroyed"===e&&(function(e){return ug.get(e)||new Set}(t).forEach((function(e){return n.off("destroyed",e)})),function(e){ug.set(e,new Set)}(t))},t}(function(e){var t=e;return t.select=function(e){ct.select(t,e)},t.deselect=function(){var n=t.selection,r=_p.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&ct.deselect(e)},t.restoreSelection=function(){var e=ap.get(t);null!=e&&(t.focus(),ct.select(t,e))},t.getSelectionPosition=function(){return Rv(t)},t.getNodePosition=function(e){return Mv(t,e)},t}(function(e){var t=e,n=t.onChange,r=t.insertText,o=t.apply,i=t.deleteBackward;return t.apply=function(e){var n,r,i,a,s,u,l,c,f=[];if(!t.getConfig().readOnly){switch(e.type){case"insert_text":case"remove_text":case"set_node":try{for(var d=ad(je.levels(t,{at:e.path})),p=d.next();!p.done;p=d.next()){var h=sd(p.value,2),g=h[0],v=h[1],y=_p.findKey(t,g);f.push([v,y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var m=ad(je.levels(t,{at:De.parent(e.path)})),b=m.next();!b.done;b=m.next()){var w=sd(b.value,2);g=w[0],v=w[1],y=_p.findKey(t,g),f.push([v,y])}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}break;case"move_node":try{for(var S=ad(je.levels(t,{at:De.common(De.parent(e.path),De.parent(e.newPath))})),x=S.next();!x.done;x=S.next()){var E=sd(x.value,2);g=E[0],v=E[1],y=_p.findKey(t,g),f.push([v,y])}}catch(e){s={error:e}}finally{try{x&&!x.done&&(u=S.return)&&u.call(S)}finally{if(s)throw s.error}}}o(e);try{for(var O=ad(f),k=O.next();!k.done;k=O.next()){var T=sd(k.value,2);v=T[0],y=T[1],g=sd(je.node(t,v),1)[0],np.set(g,y)}}catch(e){l={error:e}}finally{try{k&&!k.done&&(c=O.return)&&c.call(O)}finally{if(l)throw l.error}}}},t.deleteBackward=function(n){if("line"!==n)return i(n);if(e.selection&&We.isCollapsed(e.selection)){var r=je.above(e,{match:function(t){return je.isBlock(e,t)},at:e.selection});if(r){var o=sd(r,2)[1],a=je.range(e,o,e.selection.anchor),s=function(e,t){var n=je.range(e,We.end(t)),r=Array.from(je.positions(e,{at:t})),o=0,i=r.length,a=Math.floor(i/2);if(Sh(e,je.range(e,r[o]),n))return je.range(e,r[o],n);if(r.length<2)return je.range(e,r[r.length-1],n);for(;a!==r.length&&a!==o;)Sh(e,je.range(e,r[a]),n)?i=a:o=a,a=Math.floor((o+i)/2);return je.range(e,r[i],n)}(t,a);We.isCollapsed(s)||ct.delete(e,{at:s})}}},t.onChange=function(){var e=t.selection;null!=e&&ap.set(t,e),t.emit("change"),n()},t.insertText=function(e){_p.checkMaxLength(t)||r(e)},t.handleTab=function(){t.insertText("    ")},t.getHtml=function(e){void 0===e&&(e={});var n=e.withFormat,r=void 0===n||n,o=e.containerClassName,i=void 0===o?"w-e-content-container":o,a=t.children,s=(void 0===a?[]:a).map((function(e){return yh(e,t)})).join("");return s='<div class="'+i+'">'+s+"</div>",r&&(s=Fp(s,{collapseContent:!0})),s},t.getText=function(){var e=t.children;return(void 0===e?[]:e).map((function(e){return Ie.string(e)})).join("\n")},t.getSelectionText=function(){var n=t.selection;return null==n?"":je.string(e,n)},t.getElemsByTypePrefix=function(e){var n,r,o=[],i=je.nodes(t,{at:[],universal:!0});try{for(var a=ad(i),s=a.next();!s.done;s=a.next()){var u=sd(s.value,1)[0];if(Te.isElement(u)&&u.type.indexOf(e)>=0){var l=mh(_p.findKey(t,u).id);o.push(id(id({},u),{id:l}))}}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},t.isEmpty=function(){var e=t.children,n=void 0===e?[]:e;if(n.length>1)return!1;var r=n[0];if(null==r)return!0;if(Te.isElement(r)&&"paragraph"===r.type){var o=r.children,i=void 0===o?[]:o;if(i.length>1)return!1;var a=i[0];if(null==a)return!0;if(Ye.isText(a)&&""===a.text)return!0}return!1},t.getParentNode=function(e){return _p.getParentNode(t,e)},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in Cp)e.push(t);return e},t.getConfig=function(){var e=qd.get(t);if(null==e)throw new Error("Can not get editor config");return e},t.getMenuConfig=function(e){var n=t.getConfig().MENU_CONF;return(void 0===n?{}:n)[e]||{}},t.alert=function(e,n){void 0===n&&(n="info");var r=t.getConfig().customAlert;r&&r(e,n)},t}(function(e){var t=Lh(he());return t.id="wangEditor-"+Pp++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){var n=_p.toDOMNode(t,t),r=_p.findDocumentOrShadowRoot(t);if(op.set(t,!0),e){var o=je.end(t,[]);ct.select(t,o)}r.activeElement!==n&&n.focus({preventScroll:!0})},t.isFocused=function(){return!!op.get(t)},t.blur=function(){var e=_p.toDOMNode(t,t),n=_p.findDocumentOrShadowRoot(t);op.set(t,!1),n.activeElement===e&&e.blur()},t.updateView=function(){_p.getTextarea(t).changeViewState();var e=_p.getToolbar(t);e&&e.changeToolbarState();var n=_p.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){var e=_p.getTextarea(t);e.destroy(),Dd.delete(t),zd.delete(e);var n=_p.getToolbar(t);n&&(n.destroy(),Ud.delete(t),Bd.delete(n));var r=_p.getHoverbar(t);r&&(r.destroy(),Vd.delete(t),Hd.delete(r)),t.isDestroyed=!0,t.emit("destroyed")},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n="编辑器禁用了 scroll ，编辑器内容无法滚动，请自行实现该功能";return n+="\nYou has disabled editor scroll, please do this yourself",void console.warn(n)}var r=Ln("#"+e);if(0!==r.length){var o=r[0];if(!_p.hasDOMNode(t,o))return n="Element (found by id is '"+e+"') is not in editor DOM",n+="\n 通过 id '"+e+"' 找到的 element 不在 editor DOM 之内",void console.error(n,o);var i=_p.getTextarea(t),a=i.$textAreaContainer,s=i.$scroll,u=r.offset().top,l=a.offset().top;s[0].scrollBy({top:u-l,behavior:"smooth"})}},t.showProgressBar=function(e){if(!(e<1)){var n=_p.getTextarea(t).$progressBar;n.css("width",e+"%"),e>=100&&setTimeout((function(){n.hide(),n.css("width","0"),n.show()}),1e3)}},t.hidePanelOrModal=function(){var e=Wd.get(t);null!=e&&e.forEach((function(e){return e.hide()}))},t.enable=function(){t.getConfig().readOnly=!1,t.updateView()},t.disable=function(){t.getConfig().readOnly=!0,t.updateView()},t.isDisabled=function(){return t.getConfig().readOnly},t.toDOMNode=function(e){return _p.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=_p.getToolbar(t);n&&(e=n.$box);var r=_p.getTextarea(t).$box.parent();if(e&&e.parent()[0]!==r[0])throw new Error("Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent\n不能设置全屏，因为 toolbar DOM 父节点和 textarea DOM 父节点不一致");r.addClass("w-e-full-screen-container");var o=r.css("z-index");r.attr("data-z-index",o.toString()),t.isFullScreen=!0,t.emit("fullScreen")}},t.unFullScreen=function(){t.isFullScreen&&(_p.getTextarea(t).$box.parent().removeClass("w-e-full-screen-container"),t.isFullScreen=!1,t.emit("unFullScreen"))},t}())))));if(n&&function(e,t){return Ky(e,"data-w-e-textarea",t)}(u,n))throw new Error("Repeated create editor by textareaSelector '"+n+"'");var l=function(e){void 0===e&&(e={});var t=Mi(jp),n={},r=e.MENU_CONF,o=void 0===r?{}:r;return Or(t,(function(e,t){n[t]=id(id({},e),o[t]||{})})),delete e.MENU_CONF,id({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:[],customAlert:function(e,t){window.alert(t+":\n"+e)}},e)}(o);qd.set(u,l);var c=l.hoverbarKeys,f=void 0===c?[]:c;if(s.forEach((function(e){u=e(u)})),i&&i.length?u.children=i:u.children=[{type:"paragraph",children:[{text:""}]}],_p.normalizeContent(u),n){var d=new Ay(n);Dd.set(u,d),zd.set(d,u),d.changeViewState(),Lv((function(){var e=d.$scroll;null!=e&&e.height()<300&&console.warn("编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常\nTextarea height < 300px . This may be cause modal and hoverbar position error",e)}));var p=void 0;f.length>0&&(p=new Gy,Hd.set(p,u),Vd.set(u,p)),u.on("change",(function(){u.hidePanelOrModal()})),u.on("scroll",(function(){u.hidePanelOrModal()}))}var h=l.onCreated,g=l.onDestroyed;return h&&u.on("created",(function(){return h(u)})),g&&u.on("destroyed",(function(){return g(u)})),Lv((function(){return u.emit("created")})),u}var Xy=_l.filter,Zy=ed("filter");Vc({target:"Array",proto:!0,forced:!Zy},{filter:function(e){return Xy(this,e,arguments.length>1?arguments[1]:void 0)}});var Jy=function(){function e(e,t){var n=this;this.$toolbar=Ln('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Ri((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=Ln(e);if(0===r.length)throw new Error("Cannot find toolbar DOM by selector '"+e+"'");this.$box=r;var o=this.$toolbar;o.on("mousedown",(function(e){return e.preventDefault()})),r.append(o),Lv((function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)}))}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var e=this,t="",n=this.$toolbar,r=this.config,o=r.toolbarKeys,i=void 0===o?[]:o,a=r.excludeKeys,s=void 0===a?[]:a,u=i.filter((function(e){if("string"==typeof e){if(s.includes(e))return!1}else if(s.includes(e.key))return!1;return!0})),l=u.length;u.forEach((function(r,o){if("|"===r){if(0===o)return;if(o+1===l)return;if("|"===t)return;var i=jy();return n.append(i),void(t=r)}if("string"==typeof r)return e.registerSingleItem(r,e),void(t=r);e.registerGroup(r),t="group"}))},e.prototype.registerGroup=function(e){var t=this,n=this.$toolbar,r=function(e){return new Vy(e)}(e),o=e.menuKeys;(void 0===o?[]:o).forEach((function(e){t.registerSingleItem(e,r)})),n.append(r.$elem)},e.prototype.registerSingleItem=function(e,t){var n=this.getEditorInstance(),r=t instanceof Vy,o=this.menus,i=o[e];if(null==i){var a=Cp[e];if(null==a)throw new Error("Not found menu item factory by key '"+e+"'");if("function"!=typeof a)throw new Error("Menu item factory (key='"+e+"') is not a function");i=a(),o[e]=i}else console.warn("Duplicated toolbar menu key '"+e+"'\n重复注册了菜单栏 menu '"+e+"'");var s=qy(i,r);this.toolbarItems.push(s),$d.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=Bd.get(this);if(null==e)throw new Error("Can not get editor instance");return e},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e}();var Qy=Qu.f,em=Function.prototype,tm=em.toString,nm=/^\s*function ([^ (]*)/;function rm(e){return(rm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function om(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function im(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){om(e,t,n[t])}))}return e}function am(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function um(e,t,n){return t&&sm(e.prototype,t),n&&sm(e,n),e}function lm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cm(e,t){if(t&&("object"===rm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lm(e)}function fm(e){return(fm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dm(e,t){return(dm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dm(e,t)}Wu&&!("name"in em)&&Qy(em,"name",{configurable:!0,get:function(){try{return tm.call(this).match(nm)[1]}catch(e){return""}}});var hm={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},gm=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};am(this,e),this.init(t,n)}return um(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||hm,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,im({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),vm=function(){function e(){am(this,e),this.observers={}}return um(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function ym(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function mm(e){return null==e?"":""+e}function bm(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function wm(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function Sm(e,t,n){var r=wm(e,t,Object);r.obj[r.k]=n}function xm(e,t){var n=wm(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Em(e,t,n){var r=xm(e,n);return void 0!==r?r:xm(t,n)}function Om(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Om(e[r],t[r],n):e[r]=t[r]);return e}function km(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Tm={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Am(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Tm[e]})):e}var _m="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function Pm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,s=r.slice(i,i+a).join(n),u=o[s];void 0===u&&r.length>i+a;)a++,u=o[s=r.slice(i,i+a).join(n)];if(void 0===u)return;if("string"==typeof u)return u;if(s&&"string"==typeof u[s])return u[s];var l=r.slice(i+a).join(n);return l?Pm(u,l,n):void 0}o=o[r[i]]}return o}}var jm=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return am(this,t),n=cm(this,fm(t).call(this)),_m&&vm.call(lm(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return pm(t,vm),um(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=xm(this.data,a);return s||!i||"string"!=typeof n?s:Pm(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),Sm(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=xm(this.data,a)||{};r?Om(s,n,o):s=im({},s,n),Sm(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?im({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(),Cm={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},Nm={},Lm=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return am(this,t),n=cm(this,fm(t).call(this)),_m&&vm.call(lm(n)),bm(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,lm(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=gm.create("translator"),n}return pm(t,vm),um(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,r){var o=this;if("object"!==rm(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],n),s=a.key,u=a.namespaces,l=u[u.length-1],c=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(f){var d=n.nsSeparator||this.options.nsSeparator;return l+d+s}return s}var p=this.resolve(e,n),h=p&&p.res,g=p&&p.usedKey||s,v=p&&p.exactUsedKey||s,y=Object.prototype.toString.apply(h),m=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,S="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(w&&h&&S&&m.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,im({},n,{ns:u})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(i){var x="[object Array]"===y,E=x?[]:{},O=x?v:g;for(var k in h)if(Object.prototype.hasOwnProperty.call(h,k)){var T="".concat(O).concat(i).concat(k);E[k]=this.translate(T,im({},n,{joinArrays:!1,ns:u})),E[k]===T&&(E[k]=h[k])}h=E}}else if(w&&"string"==typeof b&&"[object Array]"===y)(h=h.join(b))&&(h=this.extendTranslation(h,e,n,r));else{var A=!1,_=!1,P=void 0!==n.count&&"string"!=typeof n.count,j=t.hasDefaultValue(n),C=P?this.pluralResolver.getSuffix(c,n.count):"",N=n["defaultValue".concat(C)]||n.defaultValue;!this.isValidLookup(h)&&j&&(A=!0,h=N),this.isValidLookup(h)||(_=!0,h=s);var L=j&&N!==h&&this.options.updateMissing;if(_||A||L){if(this.logger.log(L?"updateKey":"missingKey",c,l,s,L?N:h),i){var I=this.resolve(s,im({},n,{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var F=0;F<M.length;F++)R.push(M[F]);else"all"===this.options.saveMissingTo?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.push(n.lng||this.language);var D=function(e,t,r){o.options.missingKeyHandler?o.options.missingKeyHandler(e,l,t,L?r:h,L,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,l,t,L?r:h,L,n),o.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?R.forEach((function(e){o.pluralResolver.getSuffixes(e).forEach((function(t){D([e],s+t,n["defaultValue".concat(t)]||N)}))})):D(R,s,N))}h=this.extendTranslation(h,e,n,p,r),_&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(s)),(_||A)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(im({},n,{interpolation:im({},this.options.interpolation,n.interpolation)}));var a,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=im({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var c=e.match(this.interpolator.nestingRegexp);a<(c&&c.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var f=n.postProcess||this.options.postProcess,d="string"==typeof f?[f]:f;return null!=e&&d&&d.length&&!1!==n.applyPostProcessor&&(e=Cm.handle(d,e,t,this.options&&this.options.postProcessPassResolved?im({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),l=u.key;n=l;var c=u.namespaces;a.options.fallbackNS&&(c=c.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);c.forEach((function(e){a.isValidLookup(t)||(i=e,!Nm["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(Nm["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,u,c=l,p=[c];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,l,n,e,s):(f&&(i=a.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(c+i),d&&p.push(c+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(c+=i));u=p.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}();function Im(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Rm=function(){function e(t){am(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gm.create("languageUtils")}return um(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Im(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Im(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Im(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),Mm=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Fm={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function Dm(){var e={};return Mm.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Fm[t.fc]}}))})),e}var zm=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};am(this,e),this.languageUtils=t,this.options=n,this.logger=gm.create("pluralResolver"),this.rules=Dm()}return um(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),Bm=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};am(this,e),this.logger=gm.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return um(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Am,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?km(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?km(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?km(t.nestingPrefix):t.nestingPrefixEscaped||km("$t("),this.nestingSuffix=t.nestingSuffix?km(t.nestingSuffix):t.nestingSuffixEscaped||km(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0){var o=Em(t,u,e);return s.alwaysFormat?s.format(o,void 0,n,im({},r,t,{interpolationkey:e})):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),l=i.join(s.formatSeparator).trim();return s.format(Em(t,u,a),l,n,im({},r,t,{interpolationkey:a}))};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=mm(i));var u=t.safeValue(i);if(e=e.replace(o[0],u),d?(t.regex.lastIndex+=u.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=im({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,a)).replace(/'/g,'"');try{a=JSON.parse(o),t&&(a=im({},t,a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var c=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=c.shift(),u=c,l=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=mm(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=u.reduce((function(e,t){return o.format(e,t,i.lng,im({},i,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),Um=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return am(this,t),o=cm(this,fm(t).call(this)),_m&&vm.call(lm(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=gm.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return pm(t,vm),um(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),u.indexOf(t)<0&&u.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var o=wm(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],i[a].push(n)}(n.loaded,[o],i),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,u){s&&u&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,im({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function Hm(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===rm(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===rm(e[2])||"object"===rm(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function Vm(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $m(){}var Wm=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(am(this,t),e=cm(this,fm(t).call(this)),_m&&vm.call(lm(e)),e.options=Vm(n),e.services={},e.logger=gm,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),cm(e,lm(e));setTimeout((function(){e.init(n,r)}),0)}return e}return pm(t,vm),um(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=im({},Hm(),this.options,Vm(t)),this.format=this.options.interpolation.format,n||(n=$m),!this.options.isClone){this.modules.logger?gm.init(r(this.modules.logger),this.options):gm.init(null,this.options);var o=new Rm(this.options);this.store=new jm(this.options.resources,this.options);var i=this.services;i.logger=gm,i.resourceStore=this.store,i.languageUtils=o,i.pluralResolver=new zm(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i.interpolator=new Bm(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Um(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new Lm(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var a=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);a.length>0&&"dev"!==a[0]&&(this.options.lng=a[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var s=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];s.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=ym(),c=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$m,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=ym();return e||(e=this.languages),t||(t=this.options.ns),n||(n=$m),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Cm.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=ym();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var o;if("object"!==rm(r)){for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];o=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else o=im({},r);return o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,n.t(t,o)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=ym();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=ym();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$m,o=im({},this.options,n,{isClone:!0}),i=new t(o),a=["store","services","language"];return a.forEach((function(t){i[t]=e[t]})),i.services=im({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new Lm(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}());function qm(e,t){Wm.addResourceBundle(e,"translation",t,!0,!0)}function Gm(e){Wm.changeLanguage(e)}Wm.init({lng:"zh-CN",resources:{}});var Km=Wm.t.bind(Wm);qm("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image"}}),qm("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片"}}),"undefined"==typeof globalThis&&(window.globalThis=window);var Ym,Xm,Zm=function(e){return e&&e.Math==Math&&e},Jm=Zm("object"==typeof globalThis&&globalThis)||Zm("object"==typeof window&&window)||Zm("object"==typeof self&&self)||Zm("object"==typeof n&&n)||function(){return this}()||Function("return this")(),Qm=function(e){try{return!!e()}catch(e){return!0}},eb=!Qm((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),tb={}.propertyIsEnumerable,nb=Object.getOwnPropertyDescriptor,rb={f:nb&&!tb.call({1:2},1)?function(e){var t=nb(this,e);return!!t&&t.enumerable}:tb},ob=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ib={}.toString,ab=function(e){return ib.call(e).slice(8,-1)},sb="".split,ub=Qm((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==ab(e)?sb.call(e,""):Object(e)}:Object,lb=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},cb=function(e){return ub(lb(e))},fb=function(e){return"object"==typeof e?null!==e:"function"==typeof e},db=function(e,t){if(!fb(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!fb(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!fb(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!fb(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},pb=function(e){return Object(lb(e))},hb={}.hasOwnProperty,gb=Object.hasOwn||function(e,t){return hb.call(pb(e),t)},vb=Jm.document,yb=fb(vb)&&fb(vb.createElement),mb=function(e){return yb?vb.createElement(e):{}},bb=!eb&&!Qm((function(){return 7!=Object.defineProperty(mb("div"),"a",{get:function(){return 7}}).a})),wb=Object.getOwnPropertyDescriptor,Sb={f:eb?wb:function(e,t){if(e=cb(e),t=db(t,!0),bb)try{return wb(e,t)}catch(e){}if(gb(e,t))return ob(!rb.f.call(e,t),e[t])}},xb=/#|\.prototype\./,Eb=function(e,t){var n=kb[Ob(e)];return n==Ab||n!=Tb&&("function"==typeof t?Qm(t):!!t)},Ob=Eb.normalize=function(e){return String(e).replace(xb,".").toLowerCase()},kb=Eb.data={},Tb=Eb.NATIVE="N",Ab=Eb.POLYFILL="P",_b=Eb,Pb={},jb=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},Cb=function(e){if(!fb(e))throw TypeError(String(e)+" is not an object");return e},Nb=Object.defineProperty,Lb={f:eb?Nb:function(e,t,n){if(Cb(e),t=db(t,!0),Cb(n),bb)try{return Nb(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ib=eb?function(e,t,n){return Lb.f(e,t,ob(1,n))}:function(e,t,n){return e[t]=n,e},Rb=Sb.f,Mb=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t},Fb=function(e,t){var n,r,o,i,a,s,u,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?Jm:d?Jm[c]:(Jm[c]||{}).prototype,g=f?Pb:Pb[c]||(Pb[c]={}),v=g.prototype;for(o in t)n=!_b(f?o:c+(d?".":"#")+o,e.forced)&&h&&gb(h,o),a=g[o],n&&(s=e.noTargetGet?(l=Rb(h,o))&&l.value:h[o]),i=n&&s?s:t[o],n&&typeof a==typeof i||(u=e.bind&&n?jb(i,Jm):e.wrap&&n?Mb(i):p&&"function"==typeof i?jb(Function.call,i):i,(e.sham||i&&i.sham||a&&a.sham)&&Ib(u,"sham",!0),g[o]=u,p&&(gb(Pb,r=c+"Prototype")||Ib(Pb,r,{}),Pb[r][o]=i,e.real&&v&&!v[o]&&Ib(v,o,i)))},Db=Array.isArray||function(e){return"Array"==ab(e)},zb=Math.ceil,Bb=Math.floor,Ub=function(e){return isNaN(e=+e)?0:(e>0?Bb:zb)(e)},Hb=Math.min,Vb=function(e){return e>0?Hb(Ub(e),9007199254740991):0},$b=function(e,t,n){var r=db(t);r in e?Lb.f(e,r,ob(0,n)):e[r]=n},Wb=Jm["__core-js_shared__"]||function(e,t){try{Ib(Jm,e,t)}catch(n){Jm[e]=t}return t}("__core-js_shared__",{}),qb=i((function(e){(e.exports=function(e,t){return Wb[e]||(Wb[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.15.2",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Gb=0,Kb=Math.random(),Yb=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Gb+Kb).toString(36)},Xb=function(e){return"function"==typeof e?e:void 0},Zb=function(e,t){return arguments.length<2?Xb(Pb[e])||Xb(Jm[e]):Pb[e]&&Pb[e][t]||Jm[e]&&Jm[e][t]},Jb=Zb("navigator","userAgent")||"",Qb=Jm.process,ew=Qb&&Qb.versions,tw=ew&&ew.v8;tw?Xm=(Ym=tw.split("."))[0]<4?1:Ym[0]+Ym[1]:Jb&&(!(Ym=Jb.match(/Edge\/(\d+)/))||Ym[1]>=74)&&(Ym=Jb.match(/Chrome\/(\d+)/))&&(Xm=Ym[1]);var nw,rw=Xm&&+Xm,ow=!!Object.getOwnPropertySymbols&&!Qm((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&rw&&rw<41})),iw=ow&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,aw=qb("wks"),sw=Jm.Symbol,uw=iw?sw:sw&&sw.withoutSetter||Yb,lw=function(e){return gb(aw,e)&&(ow||"string"==typeof aw[e])||(ow&&gb(sw,e)?aw[e]=sw[e]:aw[e]=uw("Symbol."+e)),aw[e]},cw=lw("species"),fw=function(e,t){var n;return Db(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Db(n.prototype)?fb(n)&&null===(n=n[cw])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},dw=lw("species"),pw=lw("isConcatSpreadable"),hw=rw>=51||!Qm((function(){var e=[];return e[pw]=!1,e.concat()[0]!==e})),gw=(nw="concat",rw>=51||!Qm((function(){var e=[];return(e.constructor={})[dw]=function(){return{foo:1}},1!==e[nw](Boolean).foo}))),vw=function(e){if(!fb(e))return!1;var t=e[pw];return void 0!==t?!!t:Db(e)};Fb({target:"Array",proto:!0,forced:!hw||!gw},{concat:function(e){var t,n,r,o,i,a=pb(this),s=fw(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(vw(i=-1===t?a:arguments[t])){if(u+(o=Vb(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&$b(s,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");$b(s,u++,i)}return s.length=u,s}});var yw,mw=Math.max,bw=Math.min,ww=function(e){return function(t,n,r){var o,i=cb(t),a=Vb(i.length),s=function(e,t){var n=Ub(e);return n<0?mw(n+t,0):bw(n,t)}(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Sw={includes:ww(!0),indexOf:ww(!1)},xw={},Ew=Sw.indexOf,Ow=function(e,t){var n,r=cb(e),o=0,i=[];for(n in r)!gb(xw,n)&&gb(r,n)&&i.push(n);for(;t.length>o;)gb(r,n=t[o++])&&(~Ew(i,n)||i.push(n));return i},kw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tw=Object.keys||function(e){return Ow(e,kw)},Aw=eb?Object.defineProperties:function(e,t){Cb(e);for(var n,r=Tw(t),o=r.length,i=0;o>i;)Lb.f(e,n=r[i++],t[n]);return e},_w=Zb("document","documentElement"),Pw=qb("keys"),jw=function(e){return Pw[e]||(Pw[e]=Yb(e))},Cw=jw("IE_PROTO"),Nw=function(){},Lw=function(e){return"<script>"+e+"<\/script>"},Iw=function(){try{yw=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Iw=yw?function(e){e.write(Lw("")),e.close();var t=e.parentWindow.Object;return e=null,t}(yw):((t=mb("iframe")).style.display="none",_w.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Lw("document.F=Object")),e.close(),e.F);for(var n=kw.length;n--;)delete Iw.prototype[kw[n]];return Iw()};xw[Cw]=!0;var Rw=Object.create||function(e,t){var n;return null!==e?(Nw.prototype=Cb(e),n=new Nw,Nw.prototype=null,n[Cw]=e):n=Iw(),void 0===t?n:Aw(n,t)},Mw=kw.concat("length","prototype"),Fw={f:Object.getOwnPropertyNames||function(e){return Ow(e,Mw)}},Dw=Fw.f,zw={}.toString,Bw="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Uw={f:function(e){return Bw&&"[object Window]"==zw.call(e)?function(e){try{return Dw(e)}catch(e){return Bw.slice()}}(e):Dw(cb(e))}},Hw={f:Object.getOwnPropertySymbols},Vw=function(e,t,n,r){r&&r.enumerable?e[t]=n:Ib(e,t,n)},$w={f:lw},Ww=Lb.f,qw=function(e){var t=Pb.Symbol||(Pb.Symbol={});gb(t,e)||Ww(t,e,{value:$w.f(e)})},Gw={};Gw[lw("toStringTag")]="z";var Kw="[object z]"===String(Gw),Yw=lw("toStringTag"),Xw="Arguments"==ab(function(){return arguments}()),Zw=Kw?ab:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Yw))?n:Xw?ab(t):"Object"==(r=ab(t))&&"function"==typeof t.callee?"Arguments":r},Jw=Kw?{}.toString:function(){return"[object "+Zw(this)+"]"},Qw=Lb.f,eS=lw("toStringTag"),tS=function(e,t,n,r){if(e){var o=n?e:e.prototype;gb(o,eS)||Qw(o,eS,{configurable:!0,value:t}),r&&!Kw&&Ib(o,"toString",Jw)}},nS=Function.toString;"function"!=typeof Wb.inspectSource&&(Wb.inspectSource=function(e){return nS.call(e)});var rS,oS,iS,aS=Wb.inspectSource,sS=Jm.WeakMap,uS="function"==typeof sS&&/native code/.test(aS(sS)),lS=Jm.WeakMap;if(uS||Wb.state){var cS=Wb.state||(Wb.state=new lS),fS=cS.get,dS=cS.has,pS=cS.set;rS=function(e,t){if(dS.call(cS,e))throw new TypeError("Object already initialized");return t.facade=e,pS.call(cS,e,t),t},oS=function(e){return fS.call(cS,e)||{}},iS=function(e){return dS.call(cS,e)}}else{var hS=jw("state");xw[hS]=!0,rS=function(e,t){if(gb(e,hS))throw new TypeError("Object already initialized");return t.facade=e,Ib(e,hS,t),t},oS=function(e){return gb(e,hS)?e[hS]:{}},iS=function(e){return gb(e,hS)}}var gS={set:rS,get:oS,has:iS,enforce:function(e){return iS(e)?oS(e):rS(e,{})},getterFor:function(e){return function(t){var n;if(!fb(t)||(n=oS(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},vS=[].push,yS=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,l,c,f){for(var d,p,h=pb(u),g=ub(h),v=jb(l,c,3),y=Vb(g.length),m=0,b=f||fw,w=t?b(u,y):n||a?b(u,0):void 0;y>m;m++)if((s||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:vS.call(w,d)}else switch(e){case 4:return!1;case 7:vS.call(w,d)}return i?-1:r||o?o:w}},mS={forEach:yS(0),map:yS(1),filter:yS(2),some:yS(3),every:yS(4),find:yS(5),findIndex:yS(6),filterOut:yS(7)}.forEach,bS=jw("hidden"),wS=lw("toPrimitive"),SS=gS.set,xS=gS.getterFor("Symbol"),ES=Object.prototype,OS=Jm.Symbol,kS=Zb("JSON","stringify"),TS=Sb.f,AS=Lb.f,_S=Uw.f,PS=rb.f,jS=qb("symbols"),CS=qb("op-symbols"),NS=qb("string-to-symbol-registry"),LS=qb("symbol-to-string-registry"),IS=qb("wks"),RS=Jm.QObject,MS=!RS||!RS.prototype||!RS.prototype.findChild,FS=eb&&Qm((function(){return 7!=Rw(AS({},"a",{get:function(){return AS(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=TS(ES,t);r&&delete ES[t],AS(e,t,n),r&&e!==ES&&AS(ES,t,r)}:AS,DS=function(e,t){var n=jS[e]=Rw(OS.prototype);return SS(n,{type:"Symbol",tag:e,description:t}),eb||(n.description=t),n},zS=iw?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof OS},BS=function(e,t,n){e===ES&&BS(CS,t,n),Cb(e);var r=db(t,!0);return Cb(n),gb(jS,r)?(n.enumerable?(gb(e,bS)&&e[bS][r]&&(e[bS][r]=!1),n=Rw(n,{enumerable:ob(0,!1)})):(gb(e,bS)||AS(e,bS,ob(1,{})),e[bS][r]=!0),FS(e,r,n)):AS(e,r,n)},US=function(e,t){Cb(e);var n=cb(t),r=Tw(n).concat(WS(n));return mS(r,(function(t){eb&&!HS.call(n,t)||BS(e,t,n[t])})),e},HS=function(e){var t=db(e,!0),n=PS.call(this,t);return!(this===ES&&gb(jS,t)&&!gb(CS,t))&&(!(n||!gb(this,t)||!gb(jS,t)||gb(this,bS)&&this[bS][t])||n)},VS=function(e,t){var n=cb(e),r=db(t,!0);if(n!==ES||!gb(jS,r)||gb(CS,r)){var o=TS(n,r);return!o||!gb(jS,r)||gb(n,bS)&&n[bS][r]||(o.enumerable=!0),o}},$S=function(e){var t=_S(cb(e)),n=[];return mS(t,(function(e){gb(jS,e)||gb(xw,e)||n.push(e)})),n},WS=function(e){var t=e===ES,n=_S(t?CS:cb(e)),r=[];return mS(n,(function(e){!gb(jS,e)||t&&!gb(ES,e)||r.push(jS[e])})),r};if(ow||(Vw((OS=function(){if(this instanceof OS)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=Yb(e),n=function(e){this===ES&&n.call(CS,e),gb(this,bS)&&gb(this[bS],t)&&(this[bS][t]=!1),FS(this,t,ob(1,e))};return eb&&MS&&FS(ES,t,{configurable:!0,set:n}),DS(t,e)}).prototype,"toString",(function(){return xS(this).tag})),Vw(OS,"withoutSetter",(function(e){return DS(Yb(e),e)})),rb.f=HS,Lb.f=BS,Sb.f=VS,Fw.f=Uw.f=$S,Hw.f=WS,$w.f=function(e){return DS(lw(e),e)},eb&&AS(OS.prototype,"description",{configurable:!0,get:function(){return xS(this).description}})),Fb({global:!0,wrap:!0,forced:!ow,sham:!ow},{Symbol:OS}),mS(Tw(IS),(function(e){qw(e)})),Fb({target:"Symbol",stat:!0,forced:!ow},{for:function(e){var t=String(e);if(gb(NS,t))return NS[t];var n=OS(t);return NS[t]=n,LS[n]=t,n},keyFor:function(e){if(!zS(e))throw TypeError(e+" is not a symbol");if(gb(LS,e))return LS[e]},useSetter:function(){MS=!0},useSimple:function(){MS=!1}}),Fb({target:"Object",stat:!0,forced:!ow,sham:!eb},{create:function(e,t){return void 0===t?Rw(e):US(Rw(e),t)},defineProperty:BS,defineProperties:US,getOwnPropertyDescriptor:VS}),Fb({target:"Object",stat:!0,forced:!ow},{getOwnPropertyNames:$S,getOwnPropertySymbols:WS}),Fb({target:"Object",stat:!0,forced:Qm((function(){Hw.f(1)}))},{getOwnPropertySymbols:function(e){return Hw.f(pb(e))}}),kS){var qS=!ow||Qm((function(){var e=OS();return"[null]"!=kS([e])||"{}"!=kS({a:e})||"{}"!=kS(Object(e))}));Fb({target:"JSON",stat:!0,forced:qS},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(fb(t)||void 0!==e)&&!zS(e))return Db(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!zS(t))return t}),o[1]=t,kS.apply(null,o)}})}OS.prototype[wS]||Ib(OS.prototype,wS,OS.prototype.valueOf),tS(OS,"Symbol"),xw[bS]=!0,qw("asyncIterator"),qw("hasInstance"),qw("isConcatSpreadable"),qw("iterator"),qw("match"),qw("matchAll"),qw("replace"),qw("search"),qw("species"),qw("split"),qw("toPrimitive"),qw("toStringTag"),qw("unscopables"),tS(Jm.JSON,"JSON",!0);var GS=Pb.Symbol;qw("asyncDispose"),qw("dispose"),qw("matcher"),qw("metadata"),qw("observable"),qw("patternMatch"),qw("replaceAll");var KS,YS,XS,ZS=GS,JS=function(e){return function(t,n){var r,o,i=String(lb(t)),a=Ub(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},QS={codeAt:JS(!1),charAt:JS(!0)},ex=!Qm((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tx=jw("IE_PROTO"),nx=Object.prototype,rx=ex?Object.getPrototypeOf:function(e){return e=pb(e),gb(e,tx)?e[tx]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?nx:null},ox=lw("iterator"),ix=!1;[].keys&&("next"in(XS=[].keys())?(YS=rx(rx(XS)))!==Object.prototype&&(KS=YS):ix=!0);var ax=null==KS||Qm((function(){var e={};return KS[ox].call(e)!==e}));ax&&(KS={}),ax&&!gb(KS,ox)&&Ib(KS,ox,(function(){return this}));var sx={IteratorPrototype:KS,BUGGY_SAFARI_ITERATORS:ix},ux={},lx=sx.IteratorPrototype,cx=function(){return this};Object.setPrototypeOf||"__proto__"in{}&&function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}}();var fx=sx.IteratorPrototype,dx=sx.BUGGY_SAFARI_ITERATORS,px=lw("iterator"),hx=function(){return this},gx=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=Rw(lx,{next:ob(1,n)}),tS(e,r,!1,!0),ux[r]=cx}(n,t,r);var s,u,l,c=function(e){if(e===o&&g)return g;if(!dx&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[px]||p["@@iterator"]||o&&p[o],g=!dx&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(s=rx(v.call(new e)),fx!==Object.prototype&&s.next&&(tS(s,f,!0,!0),ux[f]=hx)),"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return h.call(this)}),a&&p[px]!==g&&Ib(p,px,g),ux[t]=g,o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in u)(dx||d||!(l in p))&&Vw(p,l,u[l]);else Fb({target:t,proto:!0,forced:dx||d},u);return u},vx=QS.charAt,yx=gS.set,mx=gS.getterFor("String Iterator");gx(String,"String",(function(e){yx(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=mx(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=vx(n,r),t.index+=e.length,{value:e,done:!1})}));var bx=gS.set,wx=gS.getterFor("Array Iterator");gx(Array,"Array",(function(e,t){bx(this,{type:"Array Iterator",target:cb(e),index:0,kind:t})}),(function(){var e=wx(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),ux.Arguments=ux.Array;var Sx=lw("toStringTag");for(var xx in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Ex=Jm[xx],Ox=Ex&&Ex.prototype;Ox&&Zw(Ox)!==Sx&&Ib(Ox,Sx,xx),ux[xx]=ux.Array}var kx=$w.f("iterator"),Tx=r(i((function(e){function t(n){return"function"==typeof ZS&&"symbol"==typeof kx?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof ZS&&e.constructor===ZS&&e!==ZS.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),Ax=function(e){return e&&e.Math==Math&&e},_x=Ax("object"==typeof globalThis&&globalThis)||Ax("object"==typeof window&&window)||Ax("object"==typeof self&&self)||Ax("object"==typeof n&&n)||function(){return this}()||Function("return this")(),Px=function(e){try{return!!e()}catch(e){return!0}},jx=!Px((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Cx={}.propertyIsEnumerable,Nx=Object.getOwnPropertyDescriptor,Lx={f:Nx&&!Cx.call({1:2},1)?function(e){var t=Nx(this,e);return!!t&&t.enumerable}:Cx},Ix=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rx={}.toString,Mx=function(e){return Rx.call(e).slice(8,-1)},Fx="".split,Dx=Px((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==Mx(e)?Fx.call(e,""):Object(e)}:Object,zx=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Bx=function(e){return Dx(zx(e))},Ux=function(e){return"object"==typeof e?null!==e:"function"==typeof e},Hx=function(e,t){if(!Ux(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Ux(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Ux(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Ux(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},Vx=function(e){return Object(zx(e))},$x={}.hasOwnProperty,Wx=Object.hasOwn||function(e,t){return $x.call(Vx(e),t)},qx=_x.document,Gx=Ux(qx)&&Ux(qx.createElement),Kx=function(e){return Gx?qx.createElement(e):{}},Yx=!jx&&!Px((function(){return 7!=Object.defineProperty(Kx("div"),"a",{get:function(){return 7}}).a})),Xx=Object.getOwnPropertyDescriptor,Zx={f:jx?Xx:function(e,t){if(e=Bx(e),t=Hx(t,!0),Yx)try{return Xx(e,t)}catch(e){}if(Wx(e,t))return Ix(!Lx.f.call(e,t),e[t])}},Jx=function(e){if(!Ux(e))throw TypeError(String(e)+" is not an object");return e},Qx=Object.defineProperty,eE={f:jx?Qx:function(e,t,n){if(Jx(e),t=Hx(t,!0),Jx(n),Yx)try{return Qx(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},tE=jx?function(e,t,n){return eE.f(e,t,Ix(1,n))}:function(e,t,n){return e[t]=n,e},nE=function(e,t){try{tE(_x,e,t)}catch(n){_x[e]=t}return t},rE=_x["__core-js_shared__"]||nE("__core-js_shared__",{}),oE=Function.toString;"function"!=typeof rE.inspectSource&&(rE.inspectSource=function(e){return oE.call(e)});var iE,aE,sE,uE=rE.inspectSource,lE=_x.WeakMap,cE="function"==typeof lE&&/native code/.test(uE(lE)),fE=i((function(e){(e.exports=function(e,t){return rE[e]||(rE[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),dE=0,pE=Math.random(),hE=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++dE+pE).toString(36)},gE=fE("keys"),vE=function(e){return gE[e]||(gE[e]=hE(e))},yE={},mE=_x.WeakMap;if(cE||rE.state){var bE=rE.state||(rE.state=new mE),wE=bE.get,SE=bE.has,xE=bE.set;iE=function(e,t){if(SE.call(bE,e))throw new TypeError("Object already initialized");return t.facade=e,xE.call(bE,e,t),t},aE=function(e){return wE.call(bE,e)||{}},sE=function(e){return SE.call(bE,e)}}else{var EE=vE("state");yE[EE]=!0,iE=function(e,t){if(Wx(e,EE))throw new TypeError("Object already initialized");return t.facade=e,tE(e,EE,t),t},aE=function(e){return Wx(e,EE)?e[EE]:{}},sE=function(e){return Wx(e,EE)}}var OE={set:iE,get:aE,has:sE,enforce:function(e){return sE(e)?aE(e):iE(e,{})},getterFor:function(e){return function(t){var n;if(!Ux(t)||(n=aE(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},kE=i((function(e){var t=OE.get,n=OE.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var a,s=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||Wx(o,"name")||tE(o,"name",t),(a=n(o)).source||(a.source=r.join("string"==typeof t?t:""))),e!==_x?(s?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=o:tE(e,t,o)):u?e[t]=o:nE(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||uE(this)}))})),TE=_x,AE=function(e){return"function"==typeof e?e:void 0},_E=function(e,t){return arguments.length<2?AE(TE[e])||AE(_x[e]):TE[e]&&TE[e][t]||_x[e]&&_x[e][t]},PE=Math.ceil,jE=Math.floor,CE=function(e){return isNaN(e=+e)?0:(e>0?jE:PE)(e)},NE=Math.min,LE=function(e){return e>0?NE(CE(e),9007199254740991):0},IE=Math.max,RE=Math.min,ME=function(e){return function(t,n,r){var o,i=Bx(t),a=LE(i.length),s=function(e,t){var n=CE(e);return n<0?IE(n+t,0):RE(n,t)}(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},FE={includes:ME(!0),indexOf:ME(!1)},DE=FE.indexOf,zE=function(e,t){var n,r=Bx(e),o=0,i=[];for(n in r)!Wx(yE,n)&&Wx(r,n)&&i.push(n);for(;t.length>o;)Wx(r,n=t[o++])&&(~DE(i,n)||i.push(n));return i},BE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],UE=BE.concat("length","prototype"),HE={f:Object.getOwnPropertyNames||function(e){return zE(e,UE)}},VE={f:Object.getOwnPropertySymbols},$E=_E("Reflect","ownKeys")||function(e){var t=HE.f(Jx(e)),n=VE.f;return n?t.concat(n(e)):t},WE=function(e,t){for(var n=$E(t),r=eE.f,o=Zx.f,i=0;i<n.length;i++){var a=n[i];Wx(e,a)||r(e,a,o(t,a))}},qE=/#|\.prototype\./,GE=function(e,t){var n=YE[KE(e)];return n==ZE||n!=XE&&("function"==typeof t?Px(t):!!t)},KE=GE.normalize=function(e){return String(e).replace(qE,".").toLowerCase()},YE=GE.data={},XE=GE.NATIVE="N",ZE=GE.POLYFILL="P",JE=GE,QE=Zx.f,eO=function(e,t){var n,r,o,i,a,s=e.target,u=e.global,l=e.stat;if(n=u?_x:l?_x[s]||nE(s,{}):(_x[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=QE(n,r))&&a.value:n[r],!JE(u?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;WE(i,o)}(e.sham||o&&o.sham)&&tE(i,"sham",!0),kE(n,r,i,e)}},tO=Zx.f,nO=Px((function(){tO(1)}));if(eO({target:"Object",stat:!0,forced:!jx||nO,sham:!jx},{getOwnPropertyDescriptor:function(e,t){return tO(Bx(e),t)}}),"object"===("undefined"==typeof global?"undefined":Tx(global))){var rO=Object.getOwnPropertyDescriptor(global,"window");global.window&&!rO.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){})}var oO,iO,aO=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},sO=Array.isArray||function(e){return"Array"==Mx(e)},uO=_E("navigator","userAgent")||"",lO=_x.process,cO=lO&&lO.versions,fO=cO&&cO.v8;fO?iO=(oO=fO.split("."))[0]<4?1:oO[0]+oO[1]:uO&&(!(oO=uO.match(/Edge\/(\d+)/))||oO[1]>=74)&&(oO=uO.match(/Chrome\/(\d+)/))&&(iO=oO[1]);var dO=iO&&+iO,pO=!!Object.getOwnPropertySymbols&&!Px((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&dO&&dO<41})),hO=pO&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,gO=fE("wks"),vO=_x.Symbol,yO=hO?vO:vO&&vO.withoutSetter||hE,mO=function(e){return Wx(gO,e)&&(pO||"string"==typeof gO[e])||(pO&&Wx(vO,e)?gO[e]=vO[e]:gO[e]=yO("Symbol."+e)),gO[e]},bO=mO("species"),wO=function(e,t){var n;return sO(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!sO(n.prototype)?Ux(n)&&null===(n=n[bO])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},SO=[].push,xO=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,l,c,f){for(var d,p,h=Vx(u),g=Dx(h),v=aO(l,c,3),y=LE(g.length),m=0,b=f||wO,w=t?b(u,y):n||a?b(u,0):void 0;y>m;m++)if((s||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:SO.call(w,d)}else switch(e){case 4:return!1;case 7:SO.call(w,d)}return i?-1:r||o?o:w}},EO={forEach:xO(0),map:xO(1),filter:xO(2),some:xO(3),every:xO(4),find:xO(5),findIndex:xO(6),filterOut:xO(7)}.forEach,OO=function(e,t){var n=[][e];return!!n&&Px((function(){n.call(null,t||function(){throw 1},1)}))}("forEach")?[].forEach:function(e){return EO(this,e,arguments.length>1?arguments[1]:void 0)};for(var kO in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var TO=_x[kO],AO=TO&&TO.prototype;if(AO&&AO.forEach!==OO)try{tE(AO,"forEach",OO)}catch(e){AO.forEach=OO}}qm("en",{common:{ok:"OK"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"}}),qm("zh-CN",{common:{ok:"确定"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"上标",sup:"下标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"}});var _O=function(e,t){return(_O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function PO(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}_O(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var jO=function(){return(jO=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function CO(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function NO(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function LO(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function IO(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function RO(e){var t=IO(je.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];if(!Te.isElement(n))return!1;if("paragraph"===n.type)return!1;if(""!==Ie.string(n))return!1;var r=n.children,o=void 0===r?[]:r;return!!Ye.isText(o[0])&&(ct.setNodes(e,{type:"paragraph"}),!0)}var MO={renderElems:[{type:"paragraph",renderElem:function(e,t,n){return mo("p",null,t)}}],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t,n){return""===t?"<p><br/></p>":"<p>"+t+"</p>"}}],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward,r=e;return r.deleteBackward=function(e){RO(r)||t(e)},r.deleteForward=function(e){RO(r)||n(e)},r}},FO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function DO(e){var t={exports:{}};return e(t,t.exports),t.exports}var zO=function(e){return e&&e.Math==Math&&e},BO=zO("object"==typeof globalThis&&globalThis)||zO("object"==typeof window&&window)||zO("object"==typeof self&&self)||zO("object"==typeof FO&&FO)||function(){return this}()||Function("return this")(),UO=function(e){try{return!!e()}catch(e){return!0}},HO=!UO((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),VO={}.propertyIsEnumerable,$O=Object.getOwnPropertyDescriptor,WO={f:$O&&!VO.call({1:2},1)?function(e){var t=$O(this,e);return!!t&&t.enumerable}:VO},qO=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},GO={}.toString,KO=function(e){return GO.call(e).slice(8,-1)},YO="".split,XO=UO((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==KO(e)?YO.call(e,""):Object(e)}:Object,ZO=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},JO=function(e){return XO(ZO(e))},QO=function(e){return"object"==typeof e?null!==e:"function"==typeof e},ek=function(e,t){if(!QO(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!QO(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!QO(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!QO(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},tk=function(e){return Object(ZO(e))},nk={}.hasOwnProperty,rk=Object.hasOwn||function(e,t){return nk.call(tk(e),t)},ok=BO.document,ik=QO(ok)&&QO(ok.createElement),ak=function(e){return ik?ok.createElement(e):{}},sk=!HO&&!UO((function(){return 7!=Object.defineProperty(ak("div"),"a",{get:function(){return 7}}).a})),uk=Object.getOwnPropertyDescriptor,lk={f:HO?uk:function(e,t){if(e=JO(e),t=ek(t,!0),sk)try{return uk(e,t)}catch(e){}if(rk(e,t))return qO(!WO.f.call(e,t),e[t])}},ck=function(e){if(!QO(e))throw TypeError(String(e)+" is not an object");return e},fk=Object.defineProperty,dk={f:HO?fk:function(e,t,n){if(ck(e),t=ek(t,!0),ck(n),sk)try{return fk(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},pk=HO?function(e,t,n){return dk.f(e,t,qO(1,n))}:function(e,t,n){return e[t]=n,e},hk=function(e,t){try{pk(BO,e,t)}catch(n){BO[e]=t}return t},gk=BO["__core-js_shared__"]||hk("__core-js_shared__",{}),vk=Function.toString;"function"!=typeof gk.inspectSource&&(gk.inspectSource=function(e){return vk.call(e)});var yk,mk,bk,wk=gk.inspectSource,Sk=BO.WeakMap,xk="function"==typeof Sk&&/native code/.test(wk(Sk)),Ek=DO((function(e){(e.exports=function(e,t){return gk[e]||(gk[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Ok=0,kk=Math.random(),Tk=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Ok+kk).toString(36)},Ak=Ek("keys"),_k=function(e){return Ak[e]||(Ak[e]=Tk(e))},Pk={},jk=BO.WeakMap;if(xk||gk.state){var Ck=gk.state||(gk.state=new jk),Nk=Ck.get,Lk=Ck.has,Ik=Ck.set;yk=function(e,t){if(Lk.call(Ck,e))throw new TypeError("Object already initialized");return t.facade=e,Ik.call(Ck,e,t),t},mk=function(e){return Nk.call(Ck,e)||{}},bk=function(e){return Lk.call(Ck,e)}}else{var Rk=_k("state");Pk[Rk]=!0,yk=function(e,t){if(rk(e,Rk))throw new TypeError("Object already initialized");return t.facade=e,pk(e,Rk,t),t},mk=function(e){return rk(e,Rk)?e[Rk]:{}},bk=function(e){return rk(e,Rk)}}var Mk={set:yk,get:mk,has:bk,enforce:function(e){return bk(e)?mk(e):yk(e,{})},getterFor:function(e){return function(t){var n;if(!QO(t)||(n=mk(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Fk=DO((function(e){var t=Mk.get,n=Mk.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var a,s=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||rk(o,"name")||pk(o,"name",t),(a=n(o)).source||(a.source=r.join("string"==typeof t?t:""))),e!==BO?(s?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=o:pk(e,t,o)):u?e[t]=o:hk(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||wk(this)}))})),Dk=BO,zk=function(e){return"function"==typeof e?e:void 0},Bk=function(e,t){return arguments.length<2?zk(Dk[e])||zk(BO[e]):Dk[e]&&Dk[e][t]||BO[e]&&BO[e][t]},Uk=Math.ceil,Hk=Math.floor,Vk=function(e){return isNaN(e=+e)?0:(e>0?Hk:Uk)(e)},$k=Math.min,Wk=function(e){return e>0?$k(Vk(e),9007199254740991):0},qk=Math.max,Gk=Math.min,Kk=function(e,t){var n=Vk(e);return n<0?qk(n+t,0):Gk(n,t)},Yk=function(e){return function(t,n,r){var o,i=JO(t),a=Wk(i.length),s=Kk(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Xk={includes:Yk(!0),indexOf:Yk(!1)},Zk=Xk.indexOf,Jk=function(e,t){var n,r=JO(e),o=0,i=[];for(n in r)!rk(Pk,n)&&rk(r,n)&&i.push(n);for(;t.length>o;)rk(r,n=t[o++])&&(~Zk(i,n)||i.push(n));return i},Qk=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],eT=Qk.concat("length","prototype"),tT={f:Object.getOwnPropertyNames||function(e){return Jk(e,eT)}},nT={f:Object.getOwnPropertySymbols},rT=Bk("Reflect","ownKeys")||function(e){var t=tT.f(ck(e)),n=nT.f;return n?t.concat(n(e)):t},oT=function(e,t){for(var n=rT(t),r=dk.f,o=lk.f,i=0;i<n.length;i++){var a=n[i];rk(e,a)||r(e,a,o(t,a))}},iT=/#|\.prototype\./,aT=function(e,t){var n=uT[sT(e)];return n==cT||n!=lT&&("function"==typeof t?UO(t):!!t)},sT=aT.normalize=function(e){return String(e).replace(iT,".").toLowerCase()},uT=aT.data={},lT=aT.NATIVE="N",cT=aT.POLYFILL="P",fT=aT,dT=lk.f,pT=function(e,t){var n,r,o,i,a,s=e.target,u=e.global,l=e.stat;if(n=u?BO:l?BO[s]||hk(s,{}):(BO[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=dT(n,r))&&a.value:n[r],!fT(u?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;oT(i,o)}(e.sham||o&&o.sham)&&pk(i,"sham",!0),Fk(n,r,i,e)}},hT=/"/g,gT=function(e,t,n,r){var o=String(ZO(e)),i="<"+t;return""!==n&&(i+=" "+n+'="'+String(r).replace(hT,"&quot;")+'"'),i+">"+o+"</"+t+">"},vT=function(e){return UO((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};pT({target:"String",proto:!0,forced:vT("bold")},{bold:function(){return gT(this,"b","","")}}),pT({target:"String",proto:!0,forced:vT("italics")},{italics:function(){return gT(this,"i","","")}}),pT({target:"String",proto:!0,forced:vT("sub")},{sub:function(){return gT(this,"sub","","")}}),pT({target:"String",proto:!0,forced:vT("sup")},{sup:function(){return gT(this,"sup","","")}});var yT=function(){var e=ck(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function mT(e,t){return RegExp(e,t)}var bT,wT,ST={UNSUPPORTED_Y:UO((function(){var e=mT("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:UO((function(){var e=mT("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},xT=RegExp.prototype.exec,ET=Ek("native-string-replace",String.prototype.replace),OT=xT,kT=(bT=/a/,wT=/b*/g,xT.call(bT,"a"),xT.call(wT,"a"),0!==bT.lastIndex||0!==wT.lastIndex),TT=ST.UNSUPPORTED_Y||ST.BROKEN_CARET,AT=void 0!==/()??/.exec("")[1];(kT||AT||TT)&&(OT=function(e){var t,n,r,o,i=this,a=TT&&i.sticky,s=yT.call(i),u=i.source,l=0,c=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),c=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",c=" "+c,l++),n=new RegExp("^(?:"+u+")",s)),AT&&(n=new RegExp("^"+u+"$(?!\\s)",s)),kT&&(t=i.lastIndex),r=xT.call(a?n:i,c),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:kT&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),AT&&r&&r.length>1&&ET.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var _T=OT;pT({target:"RegExp",proto:!0,forced:/./.exec!==_T},{exec:_T});var PT,jT,CT=Bk("navigator","userAgent")||"",NT=BO.process,LT=NT&&NT.versions,IT=LT&&LT.v8;IT?jT=(PT=IT.split("."))[0]<4?1:PT[0]+PT[1]:CT&&(!(PT=CT.match(/Edge\/(\d+)/))||PT[1]>=74)&&(PT=CT.match(/Chrome\/(\d+)/))&&(jT=PT[1]);var RT,MT=jT&&+jT,FT=!!Object.getOwnPropertySymbols&&!UO((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&MT&&MT<41})),DT=FT&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,zT=Ek("wks"),BT=BO.Symbol,UT=DT?BT:BT&&BT.withoutSetter||Tk,HT=function(e){return rk(zT,e)&&(FT||"string"==typeof zT[e])||(FT&&rk(BT,e)?zT[e]=BT[e]:zT[e]=UT("Symbol."+e)),zT[e]},VT=HT("match"),$T=function(e){var t;return QO(e)&&(void 0!==(t=e[VT])?!!t:"RegExp"==KO(e))},WT=function(e){if($T(e))throw TypeError("The method doesn't accept regular expressions");return e},qT=HT("match"),GT=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[qT]=!1,"/./"[e](t)}catch(e){}}return!1},KT=lk.f,YT="".startsWith,XT=Math.min,ZT=GT("startsWith");pT({target:"String",proto:!0,forced:!(!ZT&&(RT=KT(String.prototype,"startsWith"),RT&&!RT.writable)||ZT)},{startsWith:function(e){var t=String(ZO(this));WT(e);var n=Wk(XT(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return YT?YT.call(t,r,n):t.slice(n,n+r.length)===r}});var JT=Object.keys||function(e){return Jk(e,Qk)};pT({target:"Object",stat:!0,forced:UO((function(){JT(1)}))},{keys:function(e){return JT(tk(e))}});var QT=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},eA=Array.isArray||function(e){return"Array"==KO(e)},tA=HT("species"),nA=function(e,t){var n;return eA(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!eA(n.prototype)?QO(n)&&null===(n=n[tA])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},rA=[].push,oA=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,l,c,f){for(var d,p,h=tk(u),g=XO(h),v=function(e,t,n){return QT(e),void 0===t?e:function(n,r,o){return e.call(t,n,r,o)}}(l,c),y=Wk(g.length),m=0,b=f||nA,w=t?b(u,y):n||a?b(u,0):void 0;y>m;m++)if((s||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:rA.call(w,d)}else switch(e){case 4:return!1;case 7:rA.call(w,d)}return i?-1:r||o?o:w}},iA={forEach:oA(0),map:oA(1),filter:oA(2),some:oA(3),every:oA(4),find:oA(5),findIndex:oA(6),filterOut:oA(7)},aA=function(e,t){var n=[][e];return!!n&&UO((function(){n.call(null,t||function(){throw 1},1)}))},sA=iA.forEach,uA=aA("forEach")?[].forEach:function(e){return sA(this,e,arguments.length>1?arguments[1]:void 0)};for(var lA in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var cA=BO[lA],fA=cA&&cA.prototype;if(fA&&fA.forEach!==uA)try{pk(fA,"forEach",uA)}catch(l){fA.forEach=uA}}function dA(e,t){return null==e.selection||!!IO(je.nodes(e,{match:function(n){var r=_p.getNodeType(n);return"pre"===r||!!je.isVoid(e,n)||!("bold"!==t||!r.startsWith("header"))},universal:!0}),1)[0]}function pA(e,t){Object.keys(t).forEach((function(t){"text"!==t&&je.removeMark(e,t)}))}var hA=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=this.mark;return!!IO(je.nodes(e,{match:function(e){return!0===e[t]},universal:!0}),1)[0]},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return dA(e,this.mark)},e.prototype.exec=function(e,t){var n=this.mark;t?e.removeMark(n):e.addMark(n,!0)},e}(),gA='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',vA='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',yA='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',mA='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',bA='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',wA='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',SA='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',xA='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',EA='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',OA='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',kA='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',TA='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',AA='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',_A='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',PA='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',jA='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',CA='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',NA='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',LA='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',IA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="bold",t.title=Km("textStyle.bold"),t.iconSvg=gA,t.hotkey="mod+b",t}return PO(t,e),t}(hA),RA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="code",t.title=Km("textStyle.code"),t.iconSvg=bA,t.hotkey="mod+e",t}return PO(t,e),t}(hA),MA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="italic",t.title=Km("textStyle.italic"),t.iconSvg=yA,t.hotkey="mod+i",t}return PO(t,e),t}(hA),FA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="through",t.title=Km("textStyle.through"),t.iconSvg=mA,t.hotkey="mod+shift+x",t}return PO(t,e),t}(hA),DA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="underline",t.title=Km("textStyle.underline"),t.iconSvg=vA,t.hotkey="mod+u",t}return PO(t,e),t}(hA),zA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sub",t.title=Km("textStyle.sub"),t.iconSvg=LA,t.hotkey="",t}return PO(t,e),t}(hA),BA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mark="sup",t.title=Km("textStyle.sup"),t.iconSvg=NA,t.hotkey="",t}return PO(t,e),t}(hA),UA=function(){function e(){this.title=Km("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return dA(e)},e.prototype.exec=function(e,t){var n,r,o=je.nodes(e,{match:function(e){return Ye.isText(e)},universal:!0});try{for(var i=LO(o),a=i.next();!a.done;a=i.next())pA(e,a.value[0])}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),HA={renderTextStyle:function(e,t){var n=e,r=n.bold,o=n.italic,i=n.underline,a=n.code,s=n.through,u=n.sub,l=n.sup,c=t;return r&&(c=mo("strong",null,c)),a&&(c=mo("code",null,c)),o&&(c=mo("em",null,c)),i&&(c=mo("u",null,c)),s&&(c=mo("s",null,c)),u&&(c=mo("sub",null,c)),l&&(c=mo("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new IA}},{key:"underline",factory:function(){return new DA}},{key:"italic",factory:function(){return new MA}},{key:"through",factory:function(){return new FA}},{key:"code",factory:function(){return new RA}},{key:"sub",factory:function(){return new zA}},{key:"sup",factory:function(){return new BA}},{key:"clearStyle",factory:function(){return new UA}}],textToHtml:function(e,t,n){var r=e,o=r.bold,i=r.italic,a=r.underline,s=t;return o&&(s="<strong>"+s+"</strong>"),r.code&&(s="<code>"+s+"</code>"),i&&(s="<em>"+s+"</em>"),a&&(s="<u>"+s+"</u>"),r.through&&(s="<s>"+s+"</s>"),r.sub&&(s="<sub>"+s+"</sub>"),r.sup&&(s="<sup>"+s+"</sup>"),s}};function VA(e){return function(t,n,r){return mo("h"+e,null,n)}}var $A={type:"header1",renderElem:VA(1)},WA={type:"header2",renderElem:VA(2)},qA={type:"header3",renderElem:VA(3)},GA={type:"header4",renderElem:VA(4)},KA={type:"header5",renderElem:VA(5)},YA={};YA[HT("toStringTag")]="z";var XA="[object z]"===String(YA),ZA=HT("toStringTag"),JA="Arguments"==KO(function(){return arguments}()),QA=XA?KO:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),ZA))?n:JA?KO(t):"Object"==(r=KO(t))&&"function"==typeof t.callee?"Arguments":r},e_=XA?{}.toString:function(){return"[object "+QA(this)+"]"};XA||Fk(Object.prototype,"toString",e_,{unsafe:!0});var t_=RegExp.prototype,n_=t_.toString,r_=UO((function(){return"/a/b"!=n_.call({source:"a",flags:"b"})})),o_="toString"!=n_.name;function i_(e){var t=IO(je.nodes(e,{match:function(e){return _p.getNodeType(e).startsWith("header")},universal:!0}),1)[0];if(null==t)return"paragraph";var n=IO(t,1)[0];return _p.getNodeType(n)}function a_(e){return null==e.selection||!IO(je.nodes(e,{match:function(e){var t=_p.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function s_(e,t){t&&ct.setNodes(e,{type:t})}(r_||o_)&&Fk(RegExp.prototype,"toString",(function(){var e=ck(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in t_)?yT.call(e):n)}),{unsafe:!0});var u_=function(){function e(){this.title=Km("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(e){var t=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:Km("header.text")}],n=this.getValue(e).toString();return t.forEach((function(e){e.value===n?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){return i_(e)},e.prototype.isDisabled=function(e){return a_(e)},e.prototype.exec=function(e,t){s_(e,t.toString())},e}(),l_=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return i_(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return a_(e)},e.prototype.exec=function(e,t){var n=this.type;s_(e,t===n?"paragraph":n)},e}(),c_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H1",t.type="header1",t}return PO(t,e),t}(l_),f_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H2",t.type="header2",t}return PO(t,e),t}(l_),d_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H3",t.type="header3",t}return PO(t,e),t}(l_),p_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H4",t.type="header4",t}return PO(t,e),t}(l_),h_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="H5",t.type="header5",t}return PO(t,e),t}(l_),g_={key:"headerSelect",factory:function(){return new u_}},v_={key:"header1",factory:function(){return new c_}},y_={key:"header2",factory:function(){return new f_}},m_={key:"header3",factory:function(){return new d_}},b_={key:"header4",factory:function(){return new p_}},w_={key:"header5",factory:function(){return new h_}};function S_(e){return function(t,n,r){return"<h"+e+">"+n+"</h"+e+">"}}var x_={renderElems:[$A,WA,qA,GA,KA],elemsToHtml:[{type:"header1",elemToHtml:S_(1)},{type:"header2",elemToHtml:S_(2)},{type:"header3",elemToHtml:S_(3)},{type:"header4",elemToHtml:S_(4)},{type:"header5",elemToHtml:S_(5)}],menus:[g_,v_,y_,m_,b_,w_],editorPlugin:function(e){var t=e.insertBreak,n=e;return n.insertBreak=function(){var r=IO(je.nodes(n,{match:function(e){return _p.getNodeType(e).startsWith("header")},universal:!0}),1)[0];r&&_p.isSelectionAtLineEnd(e,r[1])?ct.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},E_=Object.assign,O_=Object.defineProperty,k_=!E_||UO((function(){if(HO&&1!==E_({b:1},E_(O_({},"a",{enumerable:!0,get:function(){O_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=E_({},e)[n]||JT(E_({},t)).join("")!=r}))?function(e,t){for(var n=tk(e),r=arguments.length,o=1,i=nT.f,a=WO.f;r>o;)for(var s,u=XO(arguments[o++]),l=i?JT(u).concat(i(u)):JT(u),c=l.length,f=0;c>f;)s=l[f++],HO&&!a.call(u,s)||(n[s]=u[s]);return n}:E_;function T_(e,t){null==e.data&&(e.data={});var n=e.data;null==n.style&&(n.style={}),Object.assign(n.style,t)}pT({target:"Object",stat:!0,forced:Object.assign!==k_},{assign:k_});var A_,__=HO?Object.defineProperties:function(e,t){ck(e);for(var n,r=JT(t),o=r.length,i=0;o>i;)dk.f(e,n=r[i++],t[n]);return e},P_=Bk("document","documentElement"),j_=_k("IE_PROTO"),C_=function(){},N_=function(e){return"<script>"+e+"<\/script>"},L_=function(){try{A_=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;L_=A_?function(e){e.write(N_("")),e.close();var t=e.parentWindow.Object;return e=null,t}(A_):((t=ak("iframe")).style.display="none",P_.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(N_("document.F=Object")),e.close(),e.F);for(var n=Qk.length;n--;)delete L_.prototype[Qk[n]];return L_()};Pk[j_]=!0;var I_=Object.create||function(e,t){var n;return null!==e?(C_.prototype=ck(e),n=new C_,C_.prototype=null,n[j_]=e):n=L_(),void 0===t?n:__(n,t)},R_=HT("unscopables"),M_=Array.prototype;null==M_[R_]&&dk.f(M_,R_,{configurable:!0,value:I_(null)});var F_=function(e){M_[R_][e]=!0},D_=iA.find,z_=!0;"find"in[]&&Array(1).find((function(){z_=!1})),pT({target:"Array",proto:!0,forced:z_},{find:function(e){return D_(this,e,arguments.length>1?arguments[1]:void 0)}}),F_("find"),Ln.fn.css=qn,Ln.fn.append=Xn,Ln.fn.prepend=function(e){var t,n,r=xn();for(t=0;t<this.length;t+=1)if("string"==typeof e){var o=r.createElement("div");for(o.innerHTML=e,n=o.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof jn)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},Ln.fn.addClass=In,Ln.fn.removeClass=Rn,Ln.fn.hasClass=Mn,Ln.fn.on=Un,Ln.fn.off=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];"function"==typeof t[1]&&(r=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var s=r.split(" "),u=0;u<s.length;u+=1)for(var l=s[u],c=0;c<this.length;c+=1){var f=this[c],d=void 0;if(!o&&f.dom7Listeners?d=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(d=f.dom7LiveListeners[l]),d&&d.length)for(var p=d.length-1;p>=0;p-=1){var h=d[p];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1)):i||(f.removeEventListener(l,h.proxyListener,a),d.splice(p,1))}}return this},Ln.fn.focus=or,Ln.fn.attr=Fn,Ln.fn.removeAttr=Dn,Ln.fn.hide=$n,Ln.fn.show=Wn,Ln.fn.parents=Zn,Ln.fn.dataset=zn,Ln.fn.val=Bn,Ln.fn.text=Yn,Ln.fn.html=Kn,Ln.fn.children=Qn,Ln.fn.remove=er,Ln.fn.find=Jn,Ln.fn.width=Hn,Ln.fn.height=Vn;var B_=function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){var t=this.mark,n=je.marks(e);return n&&n[t]?n[t]:""},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!IO(je.nodes(e,{match:function(t){return"pre"===_p.getNodeType(t)||!!je.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(null==this.$content){var n=Ln('<ul class="w-e-panel-content-color"></ul>');n.on("mousedown","li",(function(n){var r=n.target;if(null!=r){n.preventDefault();var o=e.selection;if(null!=o&&!We.isCollapsed(o)){var i=Ln(r).attr("data-value");"0"===i?je.removeMark(e,t):je.addMark(e,t,i)}}})),this.$content=n}var r=this.$content;if(null==r)return Ln();r.html("");var o=this.getValue(e),i=e.getMenuConfig(t).colors;(void 0===i?[]:i).forEach((function(e){var t=Ln('<div class="color-block" data-value="'+e+'"></div>');t.css("background-color",e);var n=Ln('<li data-value="'+e+'"></li>');o===e&&n.addClass("active"),n.append(t),r.append(n)}));var a="";"color"===t&&(a=Km("color.default")),"bgColor"===t&&(a=Km("color.clear"));var s=Ln('\n      <li data-value="0" class="clear">\n        <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>\n        '+a+"\n      </li>\n    ");return r.prepend(s),r},e}(),U_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Km("color.color"),t.iconSvg=xA,t.mark="color",t}return PO(t,e),t}(B_),H_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Km("color.bgColor"),t.iconSvg=EA,t.mark="bgColor",t}return PO(t,e),t}(B_),V_=["#000000","#262626","#595959","#8c8c8c","#bfbfbf","#d9d9d9","#e9e9e9e","#f5f5f5","#fafafa","#ffffff","#e13c39","#e75f33","#eb903a","#f5db4d","#72c040","#59bfc0","#4290f7","#3658e2","#6a39c9","#d84493","#fbe9e6","#fcede1","#fcefd4","#fcfbcf","#e7f6d5","#daf4f0","#d9edfa","#e0e8fa","#ede1f8","#f6e2ea","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],$_={renderTextStyle:function(e,t){var n=e,r=n.color,o=n.bgColor,i=t;return r&&T_(i,{color:r}),o&&T_(i,{backgroundColor:o}),i},textStyleToHtml:function(e,t){if(!Ye.isText(e))return t;var n=e,r=n.color,o=n.bgColor,i=n.text;if(!r&&!o)return t;t===i&&(t="<span>"+i+"</span>");var a=Ln(t);r&&a.css("color",r),o&&a.css("background-color",o);var s=Ln("<div></div>");return s.append(a),s.html()},menus:[{key:"color",factory:function(){return new U_},config:{colors:V_}},{key:"bgColor",factory:function(){return new H_},config:{colors:V_}}]},W_=/^(?:\w+:)?\/\/(\S+)$/,q_=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,G_=/^[^\s\.]+\.\S{2,}$/,K_=Xk.includes;pT({target:"Array",proto:!0},{includes:function(e){return K_(this,e,arguments.length>1?arguments[1]:void 0)}}),F_("includes");var Y_=HT("species"),X_=function(e){return MT>=51||!UO((function(){var t=[];return(t.constructor={})[Y_]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Z_=X_("slice"),J_=HT("species"),Q_=[].slice,eP=Math.max;pT({target:"Array",proto:!0,forced:!Z_},{slice:function(e,t){var n,r,o,i,a,s,u,l=JO(this),c=Wk(l.length),f=Kk(e,c),d=Kk(void 0===t?c:t,c);if(eA(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!eA(n.prototype)?QO(n)&&null===(n=n[J_])&&(n=void 0):n=void 0,n===Array||void 0===n))return Q_.call(l,f,d);for(r=new(void 0===n?Array:n)(eP(d-f,0)),o=0;f<d;f++,o++)f in l&&(i=r,a=o,s=l[f],void 0,(u=ek(a))in i?dk.f(i,u,qO(0,s)):i[u]=s);return r.length=o,r}});var tP=HT("species"),nP=RegExp.prototype,rP=!UO((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),oP="$0"==="a".replace(/./,"$0"),iP=HT("replace"),aP=!!/./[iP]&&""===/./[iP]("a","$0"),sP=!UO((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),uP=function(e,t,n,r){var o=HT(e),i=!UO((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!UO((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[tP]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return t=!0,null},n[o](""),!t}));if(!i||!a||"replace"===e&&(!rP||!oP||aP)||"split"===e&&!sP){var s=/./[o],u=n(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===_T||a===nP.exec?i&&!o?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:oP,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:aP}),l=u[0],c=u[1];Fk(String.prototype,e,l),Fk(nP,o,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)})}r&&pk(nP[o],"sham",!0)},lP=function(e){return function(t,n){var r,o,i=String(ZO(t)),a=Vk(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},cP=(lP(!1),lP(!0)),fP=function(e,t,n){return t+(n?cP(e,t).length:1)},dP=Math.floor,pP="".replace,hP=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,gP=/\$([$&'`]|\d{1,2})/g,vP=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,u=gP;return void 0!==o&&(o=tk(o),u=hP),pP.call(i,u,(function(i,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":l=o[u.slice(1,-1)];break;default:var c=+u;if(0===c)return i;if(c>s){var f=dP(c/10);return 0===f?i:f<=s?void 0===r[f-1]?u.charAt(1):r[f-1]+u.charAt(1):i}l=r[c-1]}return void 0===l?"":l}))},yP=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==KO(e))throw TypeError("RegExp#exec called on incompatible receiver");return _T.call(e,t)},mP=Math.max,bP=Math.min;function wP(e){return void 0===e&&(e="r"),e+"-"+Date.now().toString().slice(-5)+Math.random().toString(36).slice(-5)}function SP(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function xP(e,t,n,r){return CO(this,void 0,void 0,(function(){var o,i;return NO(this,(function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(n,r)]:[3,2];case 1:if("string"==typeof(i=a.sent()))return t.alert(i,"error"),[2,!1];if(null==i)return[2,!1];a.label=2;case 2:return[2,!0]}}))}))}function EP(e){return null==e.selection||!!_p.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(n)||void 0}))}function OP(e,t,n){return CO(this,void 0,void 0,(function(){var r,o,i;return NO(this,(function(a){switch(a.label){case 0:return n?(t||(t=n),_p.checkMaxLength(e,t)?[2]:(e.restoreSelection(),EP(e)?[2]:[4,xP("insertLink",e,t,n)])):[2];case 1:return a.sent()?(null==(r=e.selection)||(o=We.isCollapsed(r),i={type:"link",url:SP(n),children:o?[{text:t}]:[]},o?(e.insertText(" "),ct.insertNodes(e,i),e.insertText(" ")):(ct.wrapNodes(e,i,{split:!0}),ct.collapse(e,{edge:"end"}))),[2]):[2]}}))}))}uP("replace",2,(function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=ZO(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var s=n(t,e,this,r);if(s.done)return s.value}var u=ck(e),l=String(this),c="function"==typeof r;c||(r=String(r));var f=u.global;if(f){var d=u.unicode;u.lastIndex=0}for(var p=[];;){var h=yP(u,l);if(null===h)break;if(p.push(h),!f)break;""===String(h[0])&&(u.lastIndex=fP(l,Wk(u.lastIndex),d))}for(var g,v="",y=0,m=0;m<p.length;m++){h=p[m];for(var b=String(h[0]),w=mP(bP(Vk(h.index),l.length),0),S=[],x=1;x<h.length;x++)S.push(void 0===(g=h[x])?g:String(g));var E=h.groups;if(c){var O=[b].concat(S,w,l);void 0!==E&&O.push(E);var k=String(r.apply(void 0,O))}else k=vP(b,l,w,S,E,r);w>=y&&(v+=l.slice(y,w)+k,y=w+b.length)}return v+l.slice(y)}]}));var kP={type:"link",renderElem:function(e,t,n){var r=e,o=r.url,i=r.target;return mo("a",{href:o,target:void 0===i?"_blank":i},t)}};function TP(){return wP("w-e-insert-link")}var AP=function(){function e(){this.title=Km("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=TP(),this.urlInputId=TP(),this.buttonId=TP()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return EP(e)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=e.selection,n=this,r=n.textInputId,o=n.urlInputId,i=n.buttonId,a=IO(Dy(Km("link.text"),r),2),s=a[0],u=a[1],l=IO(Dy(Km("link.url"),o),2),c=l[0],f=l[1],d=IO(zy(i,Km("common.ok")),1)[0];if(null==this.$content){var p=Ln("<div></div>");p.on("click","#"+i,(function(t){t.preventDefault();var n=Ln("#"+r).val(),i=Ln("#"+o).val();OP(e,n,i),e.hidePanelOrModal()})),this.$content=p}var h=this.$content;if(h.html(""),h.append(s),h.append(c),h.append(d),null==t||We.isCollapsed(t))u.val("");else{var g=je.string(e,t);u.val(g)}return f.val(""),setTimeout((function(){Ln("#"+r).focus()})),h},e}();function _P(){return wP("w-e-update-link")}var PP=function(){function e(){this.title=Km("link.edit"),this.iconSvg=wA,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=_P(),this.buttonId=_P()}return e.prototype.getSelectedLinkElem=function(e){var t=_p.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.getModalPositionNode=function(e){return _p.getSelectedNodeByType(e,"link")},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=IO(Dy(Km("link.url"),t),2),o=r[0],i=r[1],a=IO(zy(n,Km("common.ok")),1)[0];if(null==this.$content){var s=Ln("<div></div>");s.on("click","button",(function(n){n.preventDefault(),e.restoreSelection();var r=_p.getSelectedNodeByType(e,"link"),o=r?Ie.string(r):"",i=Ln("#"+t).val();!function(e,t,n){CO(this,void 0,void 0,(function(){var r;return NO(this,(function(o){switch(o.label){case 0:return n?[4,xP("editLink",e,t,n)]:[2];case 1:return o.sent()?(r={url:SP(n)},ct.setNodes(e,r,{match:function(e){return _p.checkNodeType(e,"link")}}),[2]):[2]}}))}))}(e,o,i),e.hidePanelOrModal()})),this.$content=s}var u=this.$content;u.html(""),u.append(o),u.append(a);var l=this.getValue(e);return i.val(l),setTimeout((function(){Ln("#"+t).focus()})),u},e}(),jP=function(){function e(){this.title=Km("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==_p.getSelectedNodeByType(e,"link")},e.prototype.exec=function(e,t){this.isDisabled(e)||ct.unwrapNodes(e,{match:function(e){return _p.checkNodeType(e,"link")}})},e}(),CP=function(){function e(){this.title=Km("link.view"),this.iconSvg=SA,this.tag="button"}return e.prototype.getSelectedLinkElem=function(e){var t=_p.getSelectedNodeByType(e,"link");return null==t?null:t},e.prototype.getValue=function(e){var t=this.getSelectedLinkElem(e);return t&&t.url||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedLinkElem(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View link failed, link url is '"+t+"'");window.open(t,"_blank")}},e}(),NP={checkLink:function(e,t){return!0}},LP={renderElems:[kP],elemsToHtml:[{type:"link",elemToHtml:function(e,t,n){var r=e,o=r.url,i=r.target;return'<a href="'+o+'" target="'+(void 0===i?"_blank":i)+'">'+t+"</a>"}}],menus:[{key:"insertLink",factory:function(){return new AP},config:NP},{key:"editLink",factory:function(){return new PP},config:NP},{key:"unLink",factory:function(){return new jP}},{key:"viewLink",factory:function(){return new CP}}],editorPlugin:function(e){var t=e.isInline,n=e.insertData,r=e;return r.isInline=function(e){return"link"===e.type||t(e)},r.insertData=function(e){var t=e.getData("text/plain");if(function(e){if("string"!=typeof e)return!1;var t=e.match(W_);if(!t)return!1;var n=t[1];return!(!n||!q_.test(n)&&!G_.test(n))}(t)){if(!EP(r)){var o=r.selection;if(null!=o){var i=je.string(r,o);OP(r,i,t)}}}else n(e)},r}},IP=function(e){var t=String(ZO(this)),n="",r=Vk(e);if(r<0||r==1/0)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},RP=1..toFixed,MP=Math.floor,FP=function(e,t,n){return 0===t?n:t%2==1?FP(e,t-1,n*e):FP(e*e,t/2,n)},DP=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=MP(o/1e7)},zP=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=MP(r/t),r=r%t*1e7},BP=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+IP.call("0",7-r.length)+r}return n};function UP(e,t){return"w-e-image-container-"+_p.findKey(e,t).id}pT({target:"Number",proto:!0,forced:RP&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!UO((function(){RP.call({})}))},{toFixed:function(e){var t,n,r,o,i=function(e){if("number"!=typeof e&&"Number"!=KO(e))throw TypeError("Incorrect invocation");return+e}(this),a=Vk(e),s=[0,0,0,0,0,0],u="",l="0";if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(u="-",i=-i),i>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(i*FP(2,69,1))-69)<0?i*FP(2,-t,1):i/FP(2,t,1),n*=4503599627370496,(t=52-t)>0){for(DP(s,0,n),r=a;r>=7;)DP(s,1e7,0),r-=7;for(DP(s,FP(10,r,1),0),r=t-1;r>=23;)zP(s,1<<23),r-=23;zP(s,1<<r),DP(s,1,1),zP(s,2),l=BP(s)}else DP(s,0,n),DP(s,1<<-t,0),l=BP(s)+IP.call("0",a);return a>0?u+((o=l.length)<=a?"0."+IP.call("0",a-o)+l:l.slice(0,o-a)+"."+l.slice(o-a)):u+l}});var HP,VP={type:"image",renderElem:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,s=r.href,u=void 0===s?"":s,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g=_p.isNodeSelected(n,e),v={};d&&(v.width="100%"),h&&(v.height="100%");var y=mo("img",{style:v,src:o,alt:a,"data-href":u});return g?function(e,t,n,r){var o=Ln("body"),i=UP(e,t),a=r.width,s=r.height,u=0,l=0,c=0,f=!1,d=null;function p(t){d=function(){var e=Ln("#"+i);if(0===e.length)throw new Error("Cannot find image container elem");return e}(),u=t;var n=d.find("img");if(0===n.length)throw new Error("Cannot find image elem");l=n.width(),c=n.height(),o.on("mousemove",h),o.on("mouseup",g);var r=_p.getHoverbar(e);r&&r.hideAndClean()}var h=Br((function(e){e.preventDefault();var t=e.clientX,n=l+(f?u-t:t-u),r=c*(n/l);null!=d&&(n<=15||r<=15||(d.css("width",n+"px"),d.css("height",r+"px")))}),100);function g(n){if(o.off("mousemove",h),null!=d){var r=d.width().toFixed(2),i=d.height().toFixed(2),a={style:jO(jO({},t.style),{width:r+"px",height:i+"px"})};ct.setNodes(e,a,{at:_p.findPath(e,t)}),o.off("mouseup",g)}}var v={};return a&&(v.width=a),s&&(v.height=s),mo("div",{id:i,style:v,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(e){var t=Ln(e.target);t.hasClass("w-e-image-dragger")&&(e.preventDefault(),(t.hasClass("left-top")||t.hasClass("left-bottom"))&&(f=!0),p(e.clientX))}}},n,mo("div",{className:"w-e-image-dragger left-top"}),mo("div",{className:"w-e-image-dragger right-top"}),mo("div",{className:"w-e-image-dragger left-bottom"}),mo("div",{className:"w-e-image-dragger right-bottom"}))}(n,e,y,{width:d,height:h}):function(e,t,n,r){var o=r.width,i=r.height,a={};return o&&(a.width=o),i&&(a.height=i),mo("div",{id:UP(e,t),style:a,className:"w-e-image-container"},n)}(n,e,y,{width:d,height:h})}},$P="\t\n\v\f\r                　\u2028\u2029\ufeff",WP="["+$P+"]",qP=RegExp("^"+WP+WP+"*"),GP=RegExp(WP+WP+"*$"),KP=function(e){return function(t){var n=String(ZO(t));return 1&e&&(n=n.replace(qP,"")),2&e&&(n=n.replace(GP,"")),n}},YP={start:KP(1),end:KP(2),trim:KP(3)}.trim;function XP(e,t,n,r,o){return void 0===r&&(r=""),void 0===o&&(o=""),CO(this,void 0,void 0,(function(){var i,a;return NO(this,(function(s){switch(s.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(n,r,o)]:[3,2];case 1:if("string"==typeof(a=s.sent()))return t.alert(a,"error"),[2,!1];if(null==a)return[2,!1];s.label=2;case 2:return[2,!0]}}))}))}function ZP(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=""),CO(this,void 0,void 0,(function(){var o,i;return NO(this,(function(a){switch(a.label){case 0:return[4,XP("insertImage",e,t,n,r)];case 1:return a.sent()?(o={type:"image",src:SP(t),href:r,alt:n,style:{},children:[{text:""}]},ct.insertNodes(e,o),(i=e.getMenuConfig("insertImage").onInsertedImage)&&i(o),[2]):[2]}}))}))}function JP(){return wP("w-e-insert-image")}pT({target:"String",proto:!0,forced:(HP="trim",UO((function(){return!!$P[HP]()||"​᠎"!="​᠎"[HP]()||$P[HP].name!==HP})))},{trim:function(){return YP(this)}});var QP=function(){function e(){this.title=Km("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=JP(),this.altInputId=JP(),this.hrefInputId=JP(),this.buttonId=JP()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!We.isCollapsed(t)||!!IO(je.nodes(e,{match:function(t){var n=_p.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!je.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,s=IO(Dy(Km("image.src"),r),2),u=s[0],l=s[1],c=IO(Dy(Km("image.desc"),o),2),f=c[0],d=c[1],p=IO(Dy(Km("image.link"),i),2),h=p[0],g=p[1],v=IO(zy(a,Km("common.ok")),1)[0];if(null==this.$content){var y=Ln("<div></div>");y.on("click","#"+a,(function(n){n.preventDefault();var a=Ln("#"+r).val().trim(),s=Ln("#"+o).val().trim(),u=Ln("#"+i).val().trim();t.insertImage(e,a,s,u),e.hidePanelOrModal()})),this.$content=y}var m=this.$content;return m.html(""),m.append(u),m.append(f),m.append(h),m.append(v),l.val(""),d.val(""),g.val(""),setTimeout((function(){Ln("#"+r).focus()})),m},e.prototype.insertImage=function(e,t,n,r){void 0===n&&(n=""),void 0===r&&(r=""),t&&(e.restoreSelection(),this.isDisabled(e)||ZP(e,t,n,r))},e}(),ej=function(){function e(){this.title=Km("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==_p.getSelectedNodeByType(e,"image")},e.prototype.exec=function(e,t){this.isDisabled(e)||ct.removeNodes(e,{match:function(e){return _p.checkNodeType(e,"image")}})},e}();function tj(){return wP("w-e-edit-image")}var nj=function(){function e(){this.title=Km("image.edit"),this.iconSvg=wA,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=tj(),this.altInputId=tj(),this.hrefInputId=tj(),this.buttonId=tj()}return e.prototype.getValue=function(e){return""},e.prototype.getImageNode=function(e){return _p.getSelectedNodeByType(e,"image")},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!We.isCollapsed(t)||null==_p.getSelectedNodeByType(e,"image")},e.prototype.getModalPositionNode=function(e){return this.getImageNode(e)},e.prototype.getModalContentElem=function(e){var t=this,n=this,r=n.srcInputId,o=n.altInputId,i=n.hrefInputId,a=n.buttonId,s=this.getImageNode(e);if(null==s)throw new Error("Not found selected image node");var u=IO(Dy(Km("image.src"),r),2),l=u[0],c=u[1],f=IO(Dy(Km("image.desc"),o),2),d=f[0],p=f[1],h=IO(Dy(Km("image.link"),i),2),g=h[0],v=h[1],y=IO(zy(a,Km("common.ok")),1)[0];if(null==this.$content){var m=Ln("<div></div>");m.on("click","#"+a,(function(n){n.preventDefault();var a=Ln("#"+r).val(),s=Ln("#"+o).val(),u=Ln("#"+i).val();t.updateImage(e,a,s,u),e.hidePanelOrModal()})),this.$content=m}var b=this.$content;b.html(""),b.append(l),b.append(d),b.append(g),b.append(y);var w=s,S=w.src,x=w.alt,E=void 0===x?"":x,O=w.href,k=void 0===O?"":O;return c.val(S),p.val(E),v.val(k),setTimeout((function(){Ln("#"+r).focus()})),b},e.prototype.updateImage=function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),t&&(e.restoreSelection(),this.isDisabled(e)||function(e,t,n,r,o){void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o={}),CO(this,void 0,void 0,(function(){var i,a,s,u,l;return NO(this,(function(c){switch(c.label){case 0:return[4,XP("editImage",e,t,n,r)];case 1:return c.sent()?(null==(i=_p.getSelectedNodeByType(e,"image"))||(a=i.style,s={src:t,alt:n,href:r,style:jO(jO({},void 0===a?{}:a),o)},ct.setNodes(e,s,{match:function(e){return _p.checkNodeType(e,"image")}}),u=_p.getSelectedNodeByType(e,"image"),(l=e.getMenuConfig("editImage").onUpdatedImage)&&l(u)),[2]):[2]}}))}))}(e,t,n,r,o))},e}(),rj=function(){function e(){this.title=Km("image.viewLink"),this.iconSvg=SA,this.tag="button"}return e.prototype.getValue=function(e){var t=_p.getSelectedNodeByType(e,"image");return t&&t.href||""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!this.getValue(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){if(!t||"string"!=typeof t)throw new Error("View image link failed, image.href is '"+t+"'");window.open(t,"_blank")}},e}(),oj=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getSelectedNode=function(e){return _p.getSelectedNodeByType(e,"image")},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getSelectedNode(e)},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.getSelectedNode(e);if(null!=n){var r=_p.getHoverbar(e);r&&r.hideAndClean();var o=n.style,i={style:jO(jO({},void 0===o?{}:o),{width:this.value,height:""})};ct.setNodes(e,i,{match:function(e){return _p.checkNodeType(e,"image")}})}}},e}(),ij=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="30%",t.value="30%",t}return PO(t,e),t}(oj),aj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="50%",t.value="50%",t}return PO(t,e),t}(oj),sj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="100%",t.value="100%",t}return PO(t,e),t}(oj),uj={onInsertedImage:function(e){},checkImage:function(e,t,n){return!0},onUpdatedImage:function(e){}},lj={renderElems:[VP],elemsToHtml:[{type:"image",elemToHtml:function(e,t,n){var r=e,o=r.src,i=r.alt,a=void 0===i?"":i,s=r.href,u=void 0===s?"":s,l=r.style,c=void 0===l?{}:l,f=c.width,d=void 0===f?"":f,p=c.height,h=void 0===p?"":p,g="";return d&&(g+="width: "+d+";"),h&&(g+="height: "+h+";"),'<img src="'+o+'" alt="'+a+'" data-href="'+u+'" style="'+g+'"/>'}}],menus:[{key:"insertImage",factory:function(){return new QP},config:uj},{key:"deleteImage",factory:function(){return new ej}},{key:"editImage",factory:function(){return new nj},config:uj},{key:"viewImageLink",factory:function(){return new rj}},{key:"imageWidth30",factory:function(){return new ij}},{key:"imageWidth50",factory:function(){return new aj}},{key:"imageWidth100",factory:function(){return new sj}}],editorPlugin:function(e){var t=e.isInline,n=e.isVoid,r=e;return r.isInline=function(e){return"image"===e.type||t(e)},r.isVoid=function(e){return"image"===e.type||n(e)},r}},cj={type:"blockquote",renderElem:function(e,t,n){return mo("blockquote",null,t)}},fj=function(){function e(){this.title=Km("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!_p.getSelectedNodeByType(e,"blockquote")},e.prototype.isDisabled=function(e){return null==e.selection||!IO(je.nodes(e,{match:function(e){var t=_p.getNodeType(e);return"paragraph"===t||"blockquote"===t},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=this.isActive(e)?"paragraph":"blockquote";ct.setNodes(e,{type:n},{mode:"highest"})}},e}(),dj={renderElems:[cj],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t,n){return"<blockquote>"+t+"</blockquote>"}}],menus:[{key:"blockquote",factory:function(){return new fj}}],editorPlugin:function(e){var t=e.insertBreak,n=e;return n.insertBreak=function(){var r=IO(je.nodes(e,{match:function(e){return _p.checkNodeType(e,"blockquote")},universal:!0}),1)[0];r&&_p.isSelectionAtLineEnd(e,r[1])?ct.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},n}},pj=function(){function e(){this.title=Km("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(e,t){},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!IO(je.nodes(e,{match:function(t){return"pre"===_p.getNodeType(t)||!!je.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(null==this.$content){var t=Ln('<ul class="w-e-panel-content-emotion"></ul>');t.on("mousedown","li",(function(t){var n=t.target;if(null!=n){t.preventDefault();var r=Ln(n).text();e.insertText(r)}})),this.$content=t}var n=this.$content;if(null==n)return Ln();n.html("");var r=e.getMenuConfig("emotion").emotions;return(void 0===r?[]:r).forEach((function(e){var t=Ln("<li>"+e+"</li>");n.append(t)})),n},e}(),hj=HT("species"),gj=ST.UNSUPPORTED_Y,vj=[].push,yj=Math.min;uP("split",2,(function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(ZO(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!$T(e))return t.call(r,e,o);for(var i,a,s,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=_T.call(f,r))&&!((a=f.lastIndex)>c&&(u.push(r.slice(c,i.index)),i.length>1&&i.index<r.length&&vj.apply(u,i.slice(1)),s=i[0].length,c=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!s&&f.test("")||u.push(""):u.push(r.slice(c)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=ZO(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var a=ck(e),s=String(this),u=function(e,t){var n,r=ck(e).constructor;return void 0===r||null==(n=ck(r)[hj])?t:QT(n)}(a,RegExp),l=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(gj?"g":"y"),f=new u(gj?"^(?:"+a.source+")":a,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===s.length)return null===yP(f,s)?[s]:[];for(var p=0,h=0,g=[];h<s.length;){f.lastIndex=gj?0:h;var v,y=yP(f,gj?s.slice(h):s);if(null===y||(v=yj(Wk(f.lastIndex+(gj?h:0)),s.length))===p)h=fP(s,h,l);else{if(g.push(s.slice(p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(g.push(y[m]),g.length===d)return g;h=p=v}}return g.push(s.slice(p)),g}]}),gj);var mj,bj,wj={menus:[{key:"emotion",factory:function(){return new pj},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},Sj=function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.mark,n=je.marks(e);return n&&n[t]?n[t]:""},e.prototype.isDisabled=function(e){return null==e.selection||(this.mark,!!IO(je.nodes(e,{match:function(t){return"pre"===_p.getNodeType(t)||!!je.isVoid(e,t)},universal:!0}),1)[0])},e.prototype.exec=function(e,t){var n=this.mark;t?e.addMark(n,t):e.removeMark(n)},e}(),xj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Km("fontSize.title"),t.iconSvg=OA,t.mark="fontSize",t}return PO(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=void 0===n?[]:n;t.push({text:Km("fontSize.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(Sj),Ej=function(e){return e&&e.Math==Math&&e},Oj=Ej("object"==typeof globalThis&&globalThis)||Ej("object"==typeof window&&window)||Ej("object"==typeof self&&self)||Ej("object"==typeof FO&&FO)||function(){return this}()||Function("return this")(),kj=function(e){try{return!!e()}catch(e){return!0}},Tj=!kj((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Aj={}.propertyIsEnumerable,_j=Object.getOwnPropertyDescriptor,Pj={f:_j&&!Aj.call({1:2},1)?function(e){var t=_j(this,e);return!!t&&t.enumerable}:Aj},jj=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Cj={}.toString,Nj=function(e){return Cj.call(e).slice(8,-1)},Lj="".split,Ij=kj((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==Nj(e)?Lj.call(e,""):Object(e)}:Object,Rj=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Mj=function(e){return Ij(Rj(e))},Fj=function(e){return"object"==typeof e?null!==e:"function"==typeof e},Dj=function(e,t){if(!Fj(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Fj(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Fj(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Fj(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},zj=function(e){return Object(Rj(e))},Bj={}.hasOwnProperty,Uj=Object.hasOwn||function(e,t){return Bj.call(zj(e),t)},Hj=Oj.document,Vj=Fj(Hj)&&Fj(Hj.createElement),$j=function(e){return Vj?Hj.createElement(e):{}},Wj=!Tj&&!kj((function(){return 7!=Object.defineProperty($j("div"),"a",{get:function(){return 7}}).a})),qj=Object.getOwnPropertyDescriptor,Gj={f:Tj?qj:function(e,t){if(e=Mj(e),t=Dj(t,!0),Wj)try{return qj(e,t)}catch(e){}if(Uj(e,t))return jj(!Pj.f.call(e,t),e[t])}},Kj=/#|\.prototype\./,Yj=function(e,t){var n=Zj[Xj(e)];return n==Qj||n!=Jj&&("function"==typeof t?kj(t):!!t)},Xj=Yj.normalize=function(e){return String(e).replace(Kj,".").toLowerCase()},Zj=Yj.data={},Jj=Yj.NATIVE="N",Qj=Yj.POLYFILL="P",eC=Yj,tC={},nC=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},rC=function(e){if(!Fj(e))throw TypeError(String(e)+" is not an object");return e},oC=Object.defineProperty,iC={f:Tj?oC:function(e,t,n){if(rC(e),t=Dj(t,!0),rC(n),Wj)try{return oC(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},aC=Tj?function(e,t,n){return iC.f(e,t,jj(1,n))}:function(e,t,n){return e[t]=n,e},sC=Gj.f,uC=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t},lC=function(e,t){var n,r,o,i,a,s,u,l,c=e.target,f=e.global,d=e.stat,p=e.proto,h=f?Oj:d?Oj[c]:(Oj[c]||{}).prototype,g=f?tC:tC[c]||(tC[c]={}),v=g.prototype;for(o in t)n=!eC(f?o:c+(d?".":"#")+o,e.forced)&&h&&Uj(h,o),a=g[o],n&&(s=e.noTargetGet?(l=sC(h,o))&&l.value:h[o]),i=n&&s?s:t[o],n&&typeof a==typeof i||(u=e.bind&&n?nC(i,Oj):e.wrap&&n?uC(i):p&&"function"==typeof i?nC(Function.call,i):i,(e.sham||i&&i.sham||a&&a.sham)&&aC(u,"sham",!0),g[o]=u,p&&(Uj(tC,r=c+"Prototype")||aC(tC,r,{}),tC[r][o]=i,e.real&&v&&!v[o]&&aC(v,o,i)))},cC=Array.isArray||function(e){return"Array"==Nj(e)},fC=Math.ceil,dC=Math.floor,pC=function(e){return isNaN(e=+e)?0:(e>0?dC:fC)(e)},hC=Math.min,gC=function(e){return e>0?hC(pC(e),9007199254740991):0},vC=function(e,t,n){var r=Dj(t);r in e?iC.f(e,r,jj(0,n)):e[r]=n},yC=Oj["__core-js_shared__"]||function(e,t){try{aC(Oj,e,t)}catch(n){Oj[e]=t}return t}("__core-js_shared__",{}),mC=DO((function(e){(e.exports=function(e,t){return yC[e]||(yC[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.15.2",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),bC=0,wC=Math.random(),SC=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++bC+wC).toString(36)},xC=function(e){return"function"==typeof e?e:void 0},EC=function(e,t){return arguments.length<2?xC(tC[e])||xC(Oj[e]):tC[e]&&tC[e][t]||Oj[e]&&Oj[e][t]},OC=EC("navigator","userAgent")||"",kC=Oj.process,TC=kC&&kC.versions,AC=TC&&TC.v8;AC?bj=(mj=AC.split("."))[0]<4?1:mj[0]+mj[1]:OC&&(!(mj=OC.match(/Edge\/(\d+)/))||mj[1]>=74)&&(mj=OC.match(/Chrome\/(\d+)/))&&(bj=mj[1]);var _C=bj&&+bj,PC=!!Object.getOwnPropertySymbols&&!kj((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_C&&_C<41})),jC=PC&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,CC=mC("wks"),NC=Oj.Symbol,LC=jC?NC:NC&&NC.withoutSetter||SC,IC=function(e){return Uj(CC,e)&&(PC||"string"==typeof CC[e])||(PC&&Uj(NC,e)?CC[e]=NC[e]:CC[e]=LC("Symbol."+e)),CC[e]},RC=IC("species"),MC=function(e,t){var n;return cC(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!cC(n.prototype)?Fj(n)&&null===(n=n[RC])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},FC=IC("species"),DC=IC("isConcatSpreadable"),zC=_C>=51||!kj((function(){var e=[];return e[DC]=!1,e.concat()[0]!==e})),BC=_C>=51||!kj((function(){var e=[];return(e.constructor={})[FC]=function(){return{foo:1}},1!==e.concat(Boolean).foo})),UC=function(e){if(!Fj(e))return!1;var t=e[DC];return void 0!==t?!!t:cC(e)};lC({target:"Array",proto:!0,forced:!zC||!BC},{concat:function(e){var t,n,r,o,i,a=zj(this),s=MC(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(UC(i=-1===t?a:arguments[t])){if(u+(o=gC(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&vC(s,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");vC(s,u++,i)}return s.length=u,s}});var HC,VC=Math.max,$C=Math.min,WC=function(e){return function(t,n,r){var o,i=Mj(t),a=gC(i.length),s=function(e,t){var n=pC(e);return n<0?VC(n+t,0):$C(n,t)}(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},qC={includes:WC(!0),indexOf:WC(!1)},GC={},KC=qC.indexOf,YC=function(e,t){var n,r=Mj(e),o=0,i=[];for(n in r)!Uj(GC,n)&&Uj(r,n)&&i.push(n);for(;t.length>o;)Uj(r,n=t[o++])&&(~KC(i,n)||i.push(n));return i},XC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ZC=Object.keys||function(e){return YC(e,XC)},JC=Tj?Object.defineProperties:function(e,t){rC(e);for(var n,r=ZC(t),o=r.length,i=0;o>i;)iC.f(e,n=r[i++],t[n]);return e},QC=EC("document","documentElement"),eN=mC("keys"),tN=function(e){return eN[e]||(eN[e]=SC(e))},nN=tN("IE_PROTO"),rN=function(){},oN=function(e){return"<script>"+e+"<\/script>"},iN=function(){try{HC=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;iN=HC?function(e){e.write(oN("")),e.close();var t=e.parentWindow.Object;return e=null,t}(HC):((t=$j("iframe")).style.display="none",QC.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(oN("document.F=Object")),e.close(),e.F);for(var n=XC.length;n--;)delete iN.prototype[XC[n]];return iN()};GC[nN]=!0;var aN=Object.create||function(e,t){var n;return null!==e?(rN.prototype=rC(e),n=new rN,rN.prototype=null,n[nN]=e):n=iN(),void 0===t?n:JC(n,t)},sN=XC.concat("length","prototype"),uN={f:Object.getOwnPropertyNames||function(e){return YC(e,sN)}},lN=uN.f,cN={}.toString,fN="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dN={f:function(e){return fN&&"[object Window]"==cN.call(e)?function(e){try{return lN(e)}catch(e){return fN.slice()}}(e):lN(Mj(e))}},pN={f:Object.getOwnPropertySymbols},hN=function(e,t,n,r){r&&r.enumerable?e[t]=n:aC(e,t,n)},gN={f:IC},vN=iC.f,yN=function(e){var t=tC.Symbol||(tC.Symbol={});Uj(t,e)||vN(t,e,{value:gN.f(e)})},mN={};mN[IC("toStringTag")]="z";var bN="[object z]"===String(mN),wN=IC("toStringTag"),SN="Arguments"==Nj(function(){return arguments}()),xN=bN?Nj:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),wN))?n:SN?Nj(t):"Object"==(r=Nj(t))&&"function"==typeof t.callee?"Arguments":r},EN=bN?{}.toString:function(){return"[object "+xN(this)+"]"},ON=iC.f,kN=IC("toStringTag"),TN=function(e,t,n,r){if(e){var o=n?e:e.prototype;Uj(o,kN)||ON(o,kN,{configurable:!0,value:t}),r&&!bN&&aC(o,"toString",EN)}},AN=Function.toString;"function"!=typeof yC.inspectSource&&(yC.inspectSource=function(e){return AN.call(e)});var _N,PN,jN,CN=yC.inspectSource,NN=Oj.WeakMap,LN="function"==typeof NN&&/native code/.test(CN(NN)),IN=Oj.WeakMap;if(LN||yC.state){var RN=yC.state||(yC.state=new IN),MN=RN.get,FN=RN.has,DN=RN.set;_N=function(e,t){if(FN.call(RN,e))throw new TypeError("Object already initialized");return t.facade=e,DN.call(RN,e,t),t},PN=function(e){return MN.call(RN,e)||{}},jN=function(e){return FN.call(RN,e)}}else{var zN=tN("state");GC[zN]=!0,_N=function(e,t){if(Uj(e,zN))throw new TypeError("Object already initialized");return t.facade=e,aC(e,zN,t),t},PN=function(e){return Uj(e,zN)?e[zN]:{}},jN=function(e){return Uj(e,zN)}}var BN={set:_N,get:PN,has:jN,enforce:function(e){return jN(e)?PN(e):_N(e,{})},getterFor:function(e){return function(t){var n;if(!Fj(t)||(n=PN(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},UN=[].push,HN=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,l,c,f){for(var d,p,h=zj(u),g=Ij(h),v=nC(l,c,3),y=gC(g.length),m=0,b=f||MC,w=t?b(u,y):n||a?b(u,0):void 0;y>m;m++)if((s||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:UN.call(w,d)}else switch(e){case 4:return!1;case 7:UN.call(w,d)}return i?-1:r||o?o:w}},VN=[HN(0),HN(1),HN(2),HN(3),HN(4),HN(5),HN(6),HN(7)][0],$N=tN("hidden"),WN=IC("toPrimitive"),qN=BN.set,GN=BN.getterFor("Symbol"),KN=Object.prototype,YN=Oj.Symbol,XN=EC("JSON","stringify"),ZN=Gj.f,JN=iC.f,QN=dN.f,eL=Pj.f,tL=mC("symbols"),nL=mC("op-symbols"),rL=mC("string-to-symbol-registry"),oL=mC("symbol-to-string-registry"),iL=mC("wks"),aL=Oj.QObject,sL=!aL||!aL.prototype||!aL.prototype.findChild,uL=Tj&&kj((function(){return 7!=aN(JN({},"a",{get:function(){return JN(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ZN(KN,t);r&&delete KN[t],JN(e,t,n),r&&e!==KN&&JN(KN,t,r)}:JN,lL=function(e,t){var n=tL[e]=aN(YN.prototype);return qN(n,{type:"Symbol",tag:e,description:t}),Tj||(n.description=t),n},cL=jC?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof YN},fL=function(e,t,n){e===KN&&fL(nL,t,n),rC(e);var r=Dj(t,!0);return rC(n),Uj(tL,r)?(n.enumerable?(Uj(e,$N)&&e[$N][r]&&(e[$N][r]=!1),n=aN(n,{enumerable:jj(0,!1)})):(Uj(e,$N)||JN(e,$N,jj(1,{})),e[$N][r]=!0),uL(e,r,n)):JN(e,r,n)},dL=function(e,t){rC(e);var n=Mj(t),r=ZC(n).concat(vL(n));return VN(r,(function(t){Tj&&!pL.call(n,t)||fL(e,t,n[t])})),e},pL=function(e){var t=Dj(e,!0),n=eL.call(this,t);return!(this===KN&&Uj(tL,t)&&!Uj(nL,t))&&(!(n||!Uj(this,t)||!Uj(tL,t)||Uj(this,$N)&&this[$N][t])||n)},hL=function(e,t){var n=Mj(e),r=Dj(t,!0);if(n!==KN||!Uj(tL,r)||Uj(nL,r)){var o=ZN(n,r);return!o||!Uj(tL,r)||Uj(n,$N)&&n[$N][r]||(o.enumerable=!0),o}},gL=function(e){var t=QN(Mj(e)),n=[];return VN(t,(function(e){Uj(tL,e)||Uj(GC,e)||n.push(e)})),n},vL=function(e){var t=e===KN,n=QN(t?nL:Mj(e)),r=[];return VN(n,(function(e){!Uj(tL,e)||t&&!Uj(KN,e)||r.push(tL[e])})),r};if(PC||(hN((YN=function(){if(this instanceof YN)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=SC(e),n=function(e){this===KN&&n.call(nL,e),Uj(this,$N)&&Uj(this[$N],t)&&(this[$N][t]=!1),uL(this,t,jj(1,e))};return Tj&&sL&&uL(KN,t,{configurable:!0,set:n}),lL(t,e)}).prototype,"toString",(function(){return GN(this).tag})),hN(YN,"withoutSetter",(function(e){return lL(SC(e),e)})),Pj.f=pL,iC.f=fL,Gj.f=hL,uN.f=dN.f=gL,pN.f=vL,gN.f=function(e){return lL(IC(e),e)},Tj&&JN(YN.prototype,"description",{configurable:!0,get:function(){return GN(this).description}})),lC({global:!0,wrap:!0,forced:!PC,sham:!PC},{Symbol:YN}),VN(ZC(iL),(function(e){yN(e)})),lC({target:"Symbol",stat:!0,forced:!PC},{for:function(e){var t=String(e);if(Uj(rL,t))return rL[t];var n=YN(t);return rL[t]=n,oL[n]=t,n},keyFor:function(e){if(!cL(e))throw TypeError(e+" is not a symbol");if(Uj(oL,e))return oL[e]},useSetter:function(){sL=!0},useSimple:function(){sL=!1}}),lC({target:"Object",stat:!0,forced:!PC,sham:!Tj},{create:function(e,t){return void 0===t?aN(e):dL(aN(e),t)},defineProperty:fL,defineProperties:dL,getOwnPropertyDescriptor:hL}),lC({target:"Object",stat:!0,forced:!PC},{getOwnPropertyNames:gL,getOwnPropertySymbols:vL}),lC({target:"Object",stat:!0,forced:kj((function(){pN.f(1)}))},{getOwnPropertySymbols:function(e){return pN.f(zj(e))}}),XN){var yL=!PC||kj((function(){var e=YN();return"[null]"!=XN([e])||"{}"!=XN({a:e})||"{}"!=XN(Object(e))}));lC({target:"JSON",stat:!0,forced:yL},{stringify:function(e,t,n){for(var r,o=[e],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=t,(Fj(t)||void 0!==e)&&!cL(e))return cC(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!cL(t))return t}),o[1]=t,XN.apply(null,o)}})}YN.prototype[WN]||aC(YN.prototype,WN,YN.prototype.valueOf),TN(YN,"Symbol"),GC[$N]=!0,yN("asyncIterator"),yN("hasInstance"),yN("isConcatSpreadable"),yN("iterator"),yN("match"),yN("matchAll"),yN("replace"),yN("search"),yN("species"),yN("split"),yN("toPrimitive"),yN("toStringTag"),yN("unscopables"),TN(Oj.JSON,"JSON",!0);var mL=tC.Symbol;yN("asyncDispose"),yN("dispose"),yN("matcher"),yN("metadata"),yN("observable"),yN("patternMatch"),yN("replaceAll");var bL,wL,SL,xL=mL,EL=function(e){return function(t,n){var r,o,i=String(Rj(t)),a=pC(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},OL={codeAt:EL(!1),charAt:EL(!0)},kL=!kj((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),TL=tN("IE_PROTO"),AL=Object.prototype,_L=kL?Object.getPrototypeOf:function(e){return e=zj(e),Uj(e,TL)?e[TL]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?AL:null},PL=IC("iterator"),jL=!1;[].keys&&("next"in(SL=[].keys())?(wL=_L(_L(SL)))!==Object.prototype&&(bL=wL):jL=!0);var CL=null==bL||kj((function(){var e={};return bL[PL].call(e)!==e}));CL&&(bL={}),CL&&!Uj(bL,PL)&&aC(bL,PL,(function(){return this}));var NL={IteratorPrototype:bL,BUGGY_SAFARI_ITERATORS:jL},LL={},IL=NL.IteratorPrototype,RL=function(){return this};Object.setPrototypeOf||"__proto__"in{}&&function(){var e={};try{Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set.call(e,[]),e instanceof Array}catch(e){}}();var ML=NL.IteratorPrototype,FL=NL.BUGGY_SAFARI_ITERATORS,DL=IC("iterator"),zL=function(){return this},BL=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=aN(IL,{next:jj(1,n)}),TN(e,r,!1,!0),LL[r]=RL}(n,t,r);var s,u,l,c=function(e){if(e===o&&g)return g;if(!FL&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[DL]||p["@@iterator"]||o&&p[o],g=!FL&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(s=_L(v.call(new e)),ML!==Object.prototype&&s.next&&(TN(s,f,!0,!0),LL[f]=zL)),"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return h.call(this)}),a&&p[DL]!==g&&aC(p,DL,g),LL[t]=g,o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in u)(FL||d||!(l in p))&&hN(p,l,u[l]);else lC({target:t,proto:!0,forced:FL||d},u);return u},UL=OL.charAt,HL=BN.set,VL=BN.getterFor("String Iterator");BL(String,"String",(function(e){HL(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=VL(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=UL(n,r),t.index+=e.length,{value:e,done:!1})}));var $L=BN.set,WL=BN.getterFor("Array Iterator");BL(Array,"Array",(function(e,t){$L(this,{type:"Array Iterator",target:Mj(e),index:0,kind:t})}),(function(){var e=WL(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),LL.Arguments=LL.Array;var qL=IC("toStringTag");for(var GL in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var KL=Oj[GL],YL=KL&&KL.prototype;YL&&xN(YL)!==qL&&aC(YL,qL,GL),LL[GL]=LL.Array}var XL=gN.f("iterator"),ZL=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(DO((function(e){function t(n){return"function"==typeof xL&&"symbol"==typeof XL?(e.exports=t=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(e){return e&&"function"==typeof xL&&e.constructor===xL&&e!==xL.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),t(n)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}))),JL=dk.f,QL=Function.prototype,eI=QL.toString,tI=/^\s*function ([^ (]*)/;HO&&!("name"in QL)&&JL(QL,"name",{configurable:!0,get:function(){try{return eI.call(this).match(tI)[1]}catch(e){return""}}});var nI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Km("fontFamily.title"),t.iconSvg=kA,t.mark="fontFamily",t.selectPanelWidth=150,t}return PO(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=void 0===n?[]:n;t.push({text:Km("fontFamily.default"),value:""}),r.forEach((function(e){if("string"==typeof e)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if("object"===ZL(e)){var n=e.name,r=e.value;t.push({text:n,value:r,styleForRenderMenuList:{"font-family":r}})}}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},t}(Sj),rI={renderTextStyle:function(e,t){var n=e,r=n.fontSize,o=n.fontFamily,i=t;return r&&T_(i,{fontSize:r}),o&&T_(i,{fontFamily:o}),i},textStyleToHtml:function(e,t){if(!Ye.isText(e))return t;var n=e,r=n.fontSize,o=n.fontFamily,i=n.text;if(!r&&!o)return t;t===i&&(t="<span>"+i+"</span>");var a=Ln(t);r&&a.css("font-size",r),o&&a.css("font-family",o);var s=Ln("<div></div>");return s.append(a),s.html()},menus:[{key:"fontSize",factory:function(){return new xj},config:{fontSizeList:["12px","13px","14px","15px","16px","19px","22px","24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new nI},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},oI=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){var t=IO(je.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return null==t?"":IO(t,1)[0].indent||""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=IO(je.nodes(e,{match:function(e){var t=_p.getNodeType(e);return"paragraph"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e}(),iI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Km("indent.decrease"),t.iconSvg=TA,t}return PO(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return null==t||!t.indent},t.prototype.exec=function(e,t){if(t){var n=parseInt(t.toString(),10)-32;n<0&&(n=0),ct.setNodes(e,{indent:0===n?null:n+"px"},{match:function(e){return Te.isElement(e)}})}},t}(oI),aI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Km("indent.increase"),t.iconSvg=AA,t}return PO(t,e),t.prototype.isDisabled=function(e){return null==this.getMatchNode(e)},t.prototype.exec=function(e,t){var n=parseInt(t.toString(),10);n||(n=0);var r=n+32;ct.setNodes(e,{indent:r+"px"},{match:function(e){return Te.isElement(e)}})},t}(oI),sI={renderTextStyle:function(e,t){if(!Te.isElement(e))return t;var n=e.indent,r=t;return n&&T_(r,{paddingLeft:n}),r},textStyleToHtml:function(e,t){if(!Te.isElement(e))return t;var n=e.indent;if(!n)return t;var r=Ln(t);r.css("padding-left",n);var o=Ln("<div></div>");return o.append(r),o.html()},menus:[{key:"indent",factory:function(){return new aI}},{key:"delIndent",factory:function(){return new iI}}]},uI=function(){function e(){this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=IO(je.nodes(e,{match:function(e){var t=_p.getNodeType(e);return"paragraph"===t||"blockquote"===t||!!t.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isDisabled=function(e){return null==e.selection||!!IO(je.nodes(e,{match:function(t){var n=_p.getNodeType(t);return"pre"===n||"video"===n||!!je.isVoid(e,t)},universal:!0}),1)[0]},e}(),lI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Km("justify.left"),t.iconSvg=_A,t}return PO(t,e),t.prototype.exec=function(e,t){ct.setNodes(e,{textAlign:"left"},{match:function(e){return Te.isElement(e)}})},t}(uI),cI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Km("justify.right"),t.iconSvg=PA,t}return PO(t,e),t.prototype.exec=function(e,t){ct.setNodes(e,{textAlign:"right"},{match:function(e){return Te.isElement(e)}})},t}(uI),fI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Km("justify.center"),t.iconSvg=jA,t}return PO(t,e),t.prototype.exec=function(e,t){ct.setNodes(e,{textAlign:"center"},{match:function(e){return Te.isElement(e)}})},t}(uI),dI=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title=Km("justify.justify"),t.iconSvg=CA,t}return PO(t,e),t.prototype.exec=function(e,t){ct.setNodes(e,{textAlign:"justify"},{match:function(e){return Te.isElement(e)}})},t}(uI),pI={renderTextStyle:function(e,t){if(!Te.isElement(e))return t;var n=e.textAlign,r=t;return n&&T_(r,{textAlign:n}),r},textStyleToHtml:function(e,t){if(!Te.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=Ln(t);r.css("text-align",n);var o=Ln("<div></div>");return o.append(r),o.html()},menus:[{key:"justifyLeft",factory:function(){return new lI}},{key:"justifyRight",factory:function(){return new cI}},{key:"justifyCenter",factory:function(){return new fI}},{key:"justifyJustify",factory:function(){return new dI}}]},hI=function(){function e(){this.title=Km("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("lineHeight").lineHeightList,r=void 0===n?[]:n;t.push({text:Km("lineHeight.default"),value:""}),r.forEach((function(e){t.push({text:e,value:e})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.getMatchNode=function(e){var t=IO(je.nodes(e,{match:function(e){var t=_p.getNodeType(e);return!!t.startsWith("header")||!!["paragraph","blockquote","bulleted-list","numbered-list"].includes(t)},universal:!0,mode:"highest"}),1)[0];return null==t?null:t[0]},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getMatchNode(e);return null==t?"":Te.isElement(t)&&t.lineHeight||""},e.prototype.isDisabled=function(e){return null==e.selection||null==this.getMatchNode(e)},e.prototype.exec=function(e,t){ct.setNodes(e,{lineHeight:t.toString()},{mode:"highest"})},e}(),gI={renderTextStyle:function(e,t){if(!Te.isElement(e))return t;var n=e.lineHeight,r=t;return n&&T_(r,{lineHeight:n}),r},textStyleToHtml:function(e,t){if(!Te.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=Ln(t);r.css("line-height",n);var o=Ln("<div></div>");return o.append(r),o.html()},menus:[{key:"lineHeight",factory:function(){return new hI},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},vI=function(){function e(){this.title=Km("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.redo&&e.redo()},e}(),yI=function(){function e(){this.title=Km("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection},e.prototype.exec=function(e,t){"function"==typeof e.undo&&e.undo()},e}(),mI={menus:[{key:"redo",factory:function(){return new vI}},{key:"undo",factory:function(){return new yI}}]},bI={type:"divider",renderElem:function(e,t,n){return mo("div",{className:"w-e-textarea-divider","data-selected":_p.isNodeSelected(n,e)?"true":"",style:{}},mo("hr",null))}},wI=function(){function e(){this.title=Km("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||!!_p.getSelectedNodeByType(e,"divider")},e.prototype.exec=function(e,t){ct.insertNodes(e,{type:"divider",children:[{text:""}]},{mode:"highest"})},e}(),SI={renderElems:[bI],elemsToHtml:[{type:"divider",elemToHtml:function(e,t,n){return"<hr/>"}}],menus:[{key:"divider",factory:function(){return new wI}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"divider"===e.type||t(e)},r.normalizeNode=function(e){var t=IO(e,2),o=t[0],i=t[1];if("divider"!==_p.getNodeType(o))return n([o,i]);var a=((r.children||[])[i[0]+1]||{}).type,s=void 0===a?"":a;if("paragraph"!==s&&"blockquote"!==s&&!s.startsWith("header")){var u=[i[0]+1];ct.insertNodes(r,{type:"paragraph",children:[{text:""}]},{at:u})}},r}},xI=iA.map;pT({target:"Array",proto:!0,forced:!X_("map")},{map:function(e){return xI(this,e,arguments.length>1?arguments[1]:void 0)}}),pT({target:"String",proto:!0,forced:!GT("includes")},{includes:function(e){return!!~String(ZO(this)).indexOf(WT(e),arguments.length>1?arguments[1]:void 0)}});var EI=[].join,OI=XO!=Object,kI=aA("join",",");pT({target:"Array",proto:!0,forced:OI||!kI},{join:function(e){return EI.call(JO(this),void 0===e?",":e)}});var TI=function(){function e(){this.title=Km("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(e){var t=_p.getSelectedNodeByType(e,"code");if(null==t)return null;var n=_p.getParentNode(e,t);return null==n||"pre"!==_p.getNodeType(n)?null:t},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":t.language||""},e.prototype.isActive=function(e){return!!this.getSelectCodeElem(e)},e.prototype.isDisabled=function(e){return null==e.selection||null==IO(je.nodes(e,{match:function(e){var t=_p.getNodeType(e);return"pre"===t||"paragraph"===t},universal:!0}),1)[0]},e.prototype.exec=function(e,t){this.isActive(e)?this.changeToPlainText(e):this.changeToCodeBlock(e,t.toString())},e.prototype.changeToPlainText=function(e){var t=this.getSelectCodeElem(e);if(null!=t){var n=Ie.string(t);ct.removeNodes(e,{mode:"highest"});var r=n.split("\n").map((function(e){return{type:"paragraph",children:[{text:e}]}}));ct.insertNodes(e,r,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,o=[],i=je.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var a=LO(i),s=a.next();!s.done;s=a.next()){var u=IO(s.value,1)[0];u&&o.push(Ie.string(u))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}ct.removeNodes(e,{mode:"highest"});var l={type:"pre",children:[{type:"code",language:t,children:[{text:o.join("\n")}]}]};ct.insertNodes(e,l,{mode:"highest"})},e}(),AI={menus:[{key:"codeBlock",factory:function(){return new TI}}],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData,o=e;return o.insertBreak=function(){var n=_p.getSelectedNodeByType(o,"code");null!=n?"\n\n"===Ie.string(n).slice(-2)?ct.insertNodes(e,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):o.insertText("\n"):t()},o.normalizeNode=function(e){var t=IO(e,2),r=t[0],i=t[1],a=_p.getNodeType(r);if(!("code"===a&&i.length<=1))return"pre"===a&&o.children[0]===r&&ct.insertNodes(o,{type:"paragraph",children:[{text:""}]},{at:i}),n([r,i]);ct.setNodes(o,{type:"paragraph"},{at:i})},o.insertData=function(e){if(null!=_p.getSelectedNodeByType(o,"code")){var t=e.getData("text/plain");je.insertText(o,t)}else r(e)},o},renderElems:[{type:"pre",renderElem:function(e,t,n){return mo("pre",null,t)}},{type:"code",renderElem:function(e,t,n){return mo("code",null,t)}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t,n){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t,n){return"<pre>"+t+"</pre>"}}]},_I=function(){function e(){this.title=Km("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return e.isFullScreen},e.prototype.isDisabled=function(e){return!1},e.prototype.exec=function(e,t){e.isFullScreen?e.unFullScreen():e.fullScreen()},e}(),PI=[HA,x_,MO,$_,LP,lj,dj,wj,rI,sI,pI,gI,mI,SI,AI,{menus:[{key:"fullScreen",factory:function(){return new _I}}]}];qm("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),qm("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var jI="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function CI(e){var t={exports:{}};return e(t,t.exports),t.exports}var NI=function(e){return e&&e.Math==Math&&e},LI=NI("object"==typeof globalThis&&globalThis)||NI("object"==typeof window&&window)||NI("object"==typeof self&&self)||NI("object"==typeof jI&&jI)||function(){return this}()||Function("return this")(),II=function(e){try{return!!e()}catch(e){return!0}},RI=!II((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),MI={}.propertyIsEnumerable,FI=Object.getOwnPropertyDescriptor,DI={f:FI&&!MI.call({1:2},1)?function(e){var t=FI(this,e);return!!t&&t.enumerable}:MI},zI=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},BI={}.toString,UI="".split,HI=II((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==function(e){return BI.call(e).slice(8,-1)}(e)?UI.call(e,""):Object(e)}:Object,VI=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},$I=function(e){return HI(VI(e))},WI=function(e){return"object"==typeof e?null!==e:"function"==typeof e},qI=function(e,t){if(!WI(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!WI(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!WI(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!WI(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},GI={}.hasOwnProperty,KI=Object.hasOwn||function(e,t){return GI.call(Object(VI(e)),t)},YI=LI.document,XI=WI(YI)&&WI(YI.createElement),ZI=function(e){return XI?YI.createElement(e):{}},JI=!RI&&!II((function(){return 7!=Object.defineProperty(ZI("div"),"a",{get:function(){return 7}}).a})),QI=Object.getOwnPropertyDescriptor,eR={f:RI?QI:function(e,t){if(e=$I(e),t=qI(t,!0),JI)try{return QI(e,t)}catch(e){}if(KI(e,t))return zI(!DI.f.call(e,t),e[t])}},tR=function(e){if(!WI(e))throw TypeError(String(e)+" is not an object");return e},nR=Object.defineProperty,rR={f:RI?nR:function(e,t,n){if(tR(e),t=qI(t,!0),tR(n),JI)try{return nR(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},oR=RI?function(e,t,n){return rR.f(e,t,zI(1,n))}:function(e,t,n){return e[t]=n,e},iR=function(e,t){try{oR(LI,e,t)}catch(n){LI[e]=t}return t},aR=LI["__core-js_shared__"]||iR("__core-js_shared__",{}),sR=Function.toString;"function"!=typeof aR.inspectSource&&(aR.inspectSource=function(e){return sR.call(e)});var uR,lR,cR,fR=aR.inspectSource,dR=LI.WeakMap,pR="function"==typeof dR&&/native code/.test(fR(dR)),hR=CI((function(e){(e.exports=function(e,t){return aR[e]||(aR[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),gR=0,vR=Math.random(),yR=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++gR+vR).toString(36)},mR=hR("keys"),bR=function(e){return mR[e]||(mR[e]=yR(e))},wR={},SR=LI.WeakMap;if(pR||aR.state){var xR=aR.state||(aR.state=new SR),ER=xR.get,OR=xR.has,kR=xR.set;uR=function(e,t){if(OR.call(xR,e))throw new TypeError("Object already initialized");return t.facade=e,kR.call(xR,e,t),t},lR=function(e){return ER.call(xR,e)||{}},cR=function(e){return OR.call(xR,e)}}else{var TR=bR("state");wR[TR]=!0,uR=function(e,t){if(KI(e,TR))throw new TypeError("Object already initialized");return t.facade=e,oR(e,TR,t),t},lR=function(e){return KI(e,TR)?e[TR]:{}},cR=function(e){return KI(e,TR)}}var AR,_R,PR={set:uR,get:lR,has:cR,enforce:function(e){return cR(e)?lR(e):uR(e,{})},getterFor:function(e){return function(t){var n;if(!WI(t)||(n=lR(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},jR=CI((function(e){var t=PR.get,n=PR.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var a,s=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||KI(o,"name")||oR(o,"name",t),(a=n(o)).source||(a.source=r.join("string"==typeof t?t:""))),e!==LI?(s?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=o:oR(e,t,o)):u?e[t]=o:iR(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||fR(this)}))})),CR=LI,NR=function(e){return"function"==typeof e?e:void 0},LR=function(e,t){return arguments.length<2?NR(CR[e])||NR(LI[e]):CR[e]&&CR[e][t]||LI[e]&&LI[e][t]},IR=Math.ceil,RR=Math.floor,MR=function(e){return isNaN(e=+e)?0:(e>0?RR:IR)(e)},FR=Math.min,DR=Math.max,zR=Math.min,BR=function(e){return function(t,n,r){var o,i,a=$I(t),s=(o=a.length)>0?FR(MR(o),9007199254740991):0,u=function(e,t){var n=MR(e);return n<0?DR(n+t,0):zR(n,t)}(r,s);if(e&&n!=n){for(;s>u;)if((i=a[u++])!=i)return!0}else for(;s>u;u++)if((e||u in a)&&a[u]===n)return e||u||0;return!e&&-1}},UR={includes:BR(!0),indexOf:BR(!1)},HR=UR.indexOf,VR=function(e,t){var n,r=$I(e),o=0,i=[];for(n in r)!KI(wR,n)&&KI(r,n)&&i.push(n);for(;t.length>o;)KI(r,n=t[o++])&&(~HR(i,n)||i.push(n));return i},$R=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],WR=$R.concat("length","prototype"),qR={f:Object.getOwnPropertyNames||function(e){return VR(e,WR)}},GR={f:Object.getOwnPropertySymbols},KR=LR("Reflect","ownKeys")||function(e){var t=qR.f(tR(e)),n=GR.f;return n?t.concat(n(e)):t},YR=function(e,t){for(var n=KR(t),r=rR.f,o=eR.f,i=0;i<n.length;i++){var a=n[i];KI(e,a)||r(e,a,o(t,a))}},XR=/#|\.prototype\./,ZR=function(e,t){var n=QR[JR(e)];return n==tM||n!=eM&&("function"==typeof t?II(t):!!t)},JR=ZR.normalize=function(e){return String(e).replace(XR,".").toLowerCase()},QR=ZR.data={},eM=ZR.NATIVE="N",tM=ZR.POLYFILL="P",nM=ZR,rM=eR.f,oM=function(e,t){var n,r,o,i,a,s=e.target,u=e.global,l=e.stat;if(n=u?LI:l?LI[s]||iR(s,{}):(LI[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=rM(n,r))&&a.value:n[r],!nM(u?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;YR(i,o)}(e.sham||o&&o.sham)&&oR(i,"sham",!0),jR(n,r,i,e)}},iM=LR("navigator","userAgent")||"",aM=LI.process,sM=aM&&aM.versions,uM=sM&&sM.v8;uM?_R=(AR=uM.split("."))[0]<4?1:AR[0]+AR[1]:iM&&(!(AR=iM.match(/Edge\/(\d+)/))||AR[1]>=74)&&(AR=iM.match(/Chrome\/(\d+)/))&&(_R=AR[1]);var lM,cM=_R&&+_R,fM=!!Object.getOwnPropertySymbols&&!II((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cM&&cM<41})),dM=fM&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,pM=hR("wks"),hM=LI.Symbol,gM=dM?hM:hM&&hM.withoutSetter||yR,vM=Object.keys||function(e){return VR(e,$R)},yM=RI?Object.defineProperties:function(e,t){tR(e);for(var n,r=vM(t),o=r.length,i=0;o>i;)rR.f(e,n=r[i++],t[n]);return e},mM=LR("document","documentElement"),bM=bR("IE_PROTO"),wM=function(){},SM=function(e){return"<script>"+e+"<\/script>"},xM=function(){try{lM=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;xM=lM?function(e){e.write(SM("")),e.close();var t=e.parentWindow.Object;return e=null,t}(lM):((t=ZI("iframe")).style.display="none",mM.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(SM("document.F=Object")),e.close(),e.F);for(var n=$R.length;n--;)delete xM.prototype[$R[n]];return xM()};wR[bM]=!0;var EM,OM=Object.create||function(e,t){var n;return null!==e?(wM.prototype=tR(e),n=new wM,wM.prototype=null,n[bM]=e):n=xM(),void 0===t?n:yM(n,t)},kM=(KI(pM,EM="unscopables")&&(fM||"string"==typeof pM[EM])||(fM&&KI(hM,EM)?pM[EM]=hM[EM]:pM[EM]=gM("Symbol."+EM)),pM[EM]),TM=Array.prototype;null==TM[kM]&&rR.f(TM,kM,{configurable:!0,value:OM(null)});var AM=UR.includes;function _M(e){if("bulleted-list"===e)return"ul";if("numbered-list"===e)return"ol";if("list-item"===e)return"li";throw new Error("list type '"+e+"' is invalid")}function PM(e){var t=_p.getNodeType(e);return["bulleted-list","numbered-list"].includes(t)}function jM(e){return function(t,n,r){return mo(_M(e),null,n)}}oM({target:"Array",proto:!0},{includes:function(e){return AM(this,e,arguments.length>1?arguments[1]:void 0)}}),TM[kM].includes=!0;var CM={type:"bulleted-list",renderElem:jM("bulleted-list")},NM={type:"numbered-list",renderElem:jM("numbered-list")},LM={type:"list-item",renderElem:jM("list-item")};function IM(e){var t=_M(e);return function(e,n,r){return"<"+t+">"+n+"</"+t+">"}}var RM={type:"bulleted-list",elemToHtml:IM("bulleted-list")},MM={type:"numbered-list",elemToHtml:IM("numbered-list")},FM={type:"list-item",elemToHtml:IM("list-item")},DM=function(e,t){return(DM=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function zM(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}DM(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function BM(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var UM=function(){var e=tR(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function HM(e,t){return RegExp(e,t)}var VM,$M,WM={UNSUPPORTED_Y:II((function(){var e=HM("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:II((function(){var e=HM("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},qM=RegExp.prototype.exec,GM=hR("native-string-replace",String.prototype.replace),KM=qM,YM=(VM=/a/,$M=/b*/g,qM.call(VM,"a"),qM.call($M,"a"),0!==VM.lastIndex||0!==$M.lastIndex),XM=WM.UNSUPPORTED_Y||WM.BROKEN_CARET,ZM=void 0!==/()??/.exec("")[1];(YM||ZM||XM)&&(KM=function(e){var t,n,r,o,i=this,a=XM&&i.sticky,s=UM.call(i),u=i.source,l=0,c=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),c=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",c=" "+c,l++),n=new RegExp("^(?:"+u+")",s)),ZM&&(n=new RegExp("^"+u+"$(?!\\s)",s)),YM&&(t=i.lastIndex),r=qM.call(a?n:i,c),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:YM&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),ZM&&r&&r.length>1&&GM.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),oM({target:"RegExp",proto:!0,forced:/./.exec!==KM},{exec:KM});var JM=function(){function e(){this.tag="button"}return e.prototype.getListNode=function(e){var t=this.type;return _p.getSelectedNodeByType(e,t)},e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!!this.getListNode(e)},e.prototype.isDisabled=function(e){return null==e.selection||!!BM(je.nodes(e,{match:function(t){var n=_p.getNodeType(t);return"pre"===n||!!je.isVoid(e,t)||"table"===n},universal:!0}),1)[0]},e.prototype.getMatchListType=function(e){var t=BM(je.nodes(e,{match:function(e){return PM(e)},universal:!0}),1)[0];if(null==t)return"";var n=BM(t,1)[0];return _p.getNodeType(n)},e.prototype.exec=function(e,t){var n=this.type,r=this.isActive(e);ct.unwrapNodes(e,{match:function(e){return PM(e)},split:!0}),ct.setNodes(e,{type:r?"paragraph":"list-item"});var o={type:n,children:[]};r||ct.wrapNodes(e,o);var i=this.getMatchListType(e);""!=i&&i!==n&&ct.wrapNodes(e,o)},e}(),QM='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',eF='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',tF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="bulleted-list",t.title=Km("listModule.unOrderedList"),t.iconSvg=QM,t}return zM(t,e),t}(JM),nF=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="numbered-list",t.title=Km("listModule.orderedList"),t.iconSvg=eF,t}return zM(t,e),t}(JM),rF={renderElems:[CM,NM,LM],elemsToHtml:[RM,MM,FM],menus:[{key:"bulletedList",factory:function(){return new tF}},{key:"numberedList",factory:function(){return new nF}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e;return r.insertBreak=function(){var e=_p.getSelectedNodeByType(r,"list-item");if(null!=e){var n=_p.getParentNode(r,e),o=(null==n?void 0:n.children)||[];if(e===o[o.length-1]&&""===Ie.string(e))return ct.removeNodes(r,{match:function(e){return _p.checkNodeType(e,"list-item")}}),void ct.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"});t()}else t()},r.deleteBackward=function(e){(function(e){var t=BM(je.nodes(e,{match:function(t){return e.children[0]===t},mode:"highest"}),1)[0];if(null==t)return!1;var n=t[0];return!(!Te.isElement(n)||Ie.string(n)||!PM(n)||(ct.unwrapNodes(e,{match:function(e){return PM(e)},split:!0}),ct.setNodes(e,{type:"paragraph"}),0))})(r)||n(e)},r}};qm("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),qm("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var oF="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function iF(e){var t={exports:{}};return e(t,t.exports),t.exports}var aF=function(e){return e&&e.Math==Math&&e},sF=aF("object"==typeof globalThis&&globalThis)||aF("object"==typeof window&&window)||aF("object"==typeof self&&self)||aF("object"==typeof oF&&oF)||function(){return this}()||Function("return this")(),uF=function(e){try{return!!e()}catch(e){return!0}},lF=!uF((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),cF={}.propertyIsEnumerable,fF=Object.getOwnPropertyDescriptor,dF={f:fF&&!cF.call({1:2},1)?function(e){var t=fF(this,e);return!!t&&t.enumerable}:cF},pF=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hF={}.toString,gF=function(e){return hF.call(e).slice(8,-1)},vF="".split,yF=uF((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==gF(e)?vF.call(e,""):Object(e)}:Object,mF=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},bF=function(e){return yF(mF(e))},wF=function(e){return"object"==typeof e?null!==e:"function"==typeof e},SF=function(e,t){if(!wF(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!wF(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!wF(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!wF(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},xF=function(e){return Object(mF(e))},EF={}.hasOwnProperty,OF=Object.hasOwn||function(e,t){return EF.call(xF(e),t)},kF=sF.document,TF=wF(kF)&&wF(kF.createElement),AF=function(e){return TF?kF.createElement(e):{}},_F=!lF&&!uF((function(){return 7!=Object.defineProperty(AF("div"),"a",{get:function(){return 7}}).a})),PF=Object.getOwnPropertyDescriptor,jF={f:lF?PF:function(e,t){if(e=bF(e),t=SF(t,!0),_F)try{return PF(e,t)}catch(e){}if(OF(e,t))return pF(!dF.f.call(e,t),e[t])}},CF=function(e){if(!wF(e))throw TypeError(String(e)+" is not an object");return e},NF=Object.defineProperty,LF={f:lF?NF:function(e,t,n){if(CF(e),t=SF(t,!0),CF(n),_F)try{return NF(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},IF=lF?function(e,t,n){return LF.f(e,t,pF(1,n))}:function(e,t,n){return e[t]=n,e},RF=function(e,t){try{IF(sF,e,t)}catch(n){sF[e]=t}return t},MF=sF["__core-js_shared__"]||RF("__core-js_shared__",{}),FF=Function.toString;"function"!=typeof MF.inspectSource&&(MF.inspectSource=function(e){return FF.call(e)});var DF,zF,BF,UF=MF.inspectSource,HF=sF.WeakMap,VF="function"==typeof HF&&/native code/.test(UF(HF)),$F=iF((function(e){(e.exports=function(e,t){return MF[e]||(MF[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),WF=0,qF=Math.random(),GF=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++WF+qF).toString(36)},KF=$F("keys"),YF=function(e){return KF[e]||(KF[e]=GF(e))},XF={},ZF=sF.WeakMap;if(VF||MF.state){var JF=MF.state||(MF.state=new ZF),QF=JF.get,eD=JF.has,tD=JF.set;DF=function(e,t){if(eD.call(JF,e))throw new TypeError("Object already initialized");return t.facade=e,tD.call(JF,e,t),t},zF=function(e){return QF.call(JF,e)||{}},BF=function(e){return eD.call(JF,e)}}else{var nD=YF("state");XF[nD]=!0,DF=function(e,t){if(OF(e,nD))throw new TypeError("Object already initialized");return t.facade=e,IF(e,nD,t),t},zF=function(e){return OF(e,nD)?e[nD]:{}},BF=function(e){return OF(e,nD)}}var rD={set:DF,get:zF,has:BF,enforce:function(e){return BF(e)?zF(e):DF(e,{})},getterFor:function(e){return function(t){var n;if(!wF(t)||(n=zF(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},oD=iF((function(e){var t=rD.get,n=rD.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var a,s=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||OF(o,"name")||IF(o,"name",t),(a=n(o)).source||(a.source=r.join("string"==typeof t?t:""))),e!==sF?(s?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=o:IF(e,t,o)):u?e[t]=o:RF(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||UF(this)}))})),iD=sF,aD=function(e){return"function"==typeof e?e:void 0},sD=function(e,t){return arguments.length<2?aD(iD[e])||aD(sF[e]):iD[e]&&iD[e][t]||sF[e]&&sF[e][t]},uD=Math.ceil,lD=Math.floor,cD=function(e){return isNaN(e=+e)?0:(e>0?lD:uD)(e)},fD=Math.min,dD=function(e){return e>0?fD(cD(e),9007199254740991):0},pD=Math.max,hD=Math.min,gD=function(e,t){var n=cD(e);return n<0?pD(n+t,0):hD(n,t)},vD=function(e){return function(t,n,r){var o,i=bF(t),a=dD(i.length),s=gD(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},yD=(vD(!0),vD(!1)),mD=function(e,t){var n,r=bF(e),o=0,i=[];for(n in r)!OF(XF,n)&&OF(r,n)&&i.push(n);for(;t.length>o;)OF(r,n=t[o++])&&(~yD(i,n)||i.push(n));return i},bD=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],wD=bD.concat("length","prototype"),SD={f:Object.getOwnPropertyNames||function(e){return mD(e,wD)}},xD={f:Object.getOwnPropertySymbols},ED=sD("Reflect","ownKeys")||function(e){var t=SD.f(CF(e)),n=xD.f;return n?t.concat(n(e)):t},OD=function(e,t){for(var n=ED(t),r=LF.f,o=jF.f,i=0;i<n.length;i++){var a=n[i];OF(e,a)||r(e,a,o(t,a))}},kD=/#|\.prototype\./,TD=function(e,t){var n=_D[AD(e)];return n==jD||n!=PD&&("function"==typeof t?uF(t):!!t)},AD=TD.normalize=function(e){return String(e).replace(kD,".").toLowerCase()},_D=TD.data={},PD=TD.NATIVE="N",jD=TD.POLYFILL="P",CD=TD,ND=jF.f,LD=function(e,t){var n,r,o,i,a,s=e.target,u=e.global,l=e.stat;if(n=u?sF:l?sF[s]||RF(s,{}):(sF[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=ND(n,r))&&a.value:n[r],!CD(u?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;OD(i,o)}(e.sham||o&&o.sham)&&IF(i,"sham",!0),oD(n,r,i,e)}},ID=/"/g;LD({target:"String",proto:!0,forced:("anchor",uF((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})))},{anchor:function(e){return"a","name",t=e,n=String(mF(this)),r="<a",(r+=' name="'+String(t).replace(ID,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var RD,MD,FD=sD("navigator","userAgent")||"",DD=sF.process,zD=DD&&DD.versions,BD=zD&&zD.v8;BD?MD=(RD=BD.split("."))[0]<4?1:RD[0]+RD[1]:FD&&(!(RD=FD.match(/Edge\/(\d+)/))||RD[1]>=74)&&(RD=FD.match(/Chrome\/(\d+)/))&&(MD=RD[1]);var UD,HD=MD&&+MD,VD=!!Object.getOwnPropertySymbols&&!uF((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&HD&&HD<41})),$D=VD&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,WD=$F("wks"),qD=sF.Symbol,GD=$D?qD:qD&&qD.withoutSetter||GF,KD=function(e){return OF(WD,e)&&(VD||"string"==typeof WD[e])||(VD&&OF(qD,e)?WD[e]=qD[e]:WD[e]=GD("Symbol."+e)),WD[e]},YD=KD("match"),XD=function(e){if(function(e){var t;return wF(e)&&(void 0!==(t=e[YD])?!!t:"RegExp"==gF(e))}(e))throw TypeError("The method doesn't accept regular expressions");return e},ZD=KD("match"),JD=jF.f,QD="".startsWith,ez=Math.min,tz=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[ZD]=!1,"/./"[e](t)}catch(e){}}return!1}("startsWith");LD({target:"String",proto:!0,forced:!(!tz&&(UD=JD(String.prototype,"startsWith"),UD&&!UD.writable)||tz)},{startsWith:function(e){var t=String(mF(this));XD(e);var n=dD(ez(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return QD?QD.call(t,r,n):t.slice(n,n+r.length)===r}});var nz=Array.isArray||function(e){return"Array"==gF(e)},rz=KD("species"),oz=function(e,t){var n;return nz(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!nz(n.prototype)?wF(n)&&null===(n=n[rz])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},iz=[].push,az=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,l,c,f){for(var d,p,h=xF(u),g=yF(h),v=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}(l,c,3),y=dD(g.length),m=0,b=f||oz,w=t?b(u,y):n||a?b(u,0):void 0;y>m;m++)if((s||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:iz.call(w,d)}else switch(e){case 4:return!1;case 7:iz.call(w,d)}return i?-1:r||o?o:w}},sz={forEach:az(0),map:az(1),filter:az(2),some:az(3),every:az(4),find:az(5),findIndex:az(6),filterOut:az(7)},uz=function(e,t){var n=[][e];return!!n&&uF((function(){n.call(null,t||function(){throw 1},1)}))},lz=sz.forEach,cz=uz("forEach")?[].forEach:function(e){return lz(this,e,arguments.length>1?arguments[1]:void 0)};for(var fz in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var dz=sF[fz],pz=dz&&dz.prototype;if(pz&&pz.forEach!==cz)try{IF(pz,"forEach",cz)}catch(l){pz.forEach=cz}}var hz=function(e,t,n){var r=SF(t);r in e?LF.f(e,r,pF(0,n)):e[r]=n},gz=KD("species"),vz=function(e){return HD>=51||!uF((function(){var t=[];return(t.constructor={})[gz]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},yz=KD("isConcatSpreadable"),mz=HD>=51||!uF((function(){var e=[];return e[yz]=!1,e.concat()[0]!==e})),bz=vz("concat"),wz=function(e){if(!wF(e))return!1;var t=e[yz];return void 0!==t?!!t:nz(e)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function Sz(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function xz(e){var t=e.selection;if(null==t)return!1;var n=Sz(je.nodes(e,{match:function(e){return _p.checkNodeType(e,"table-cell")}}),1)[0];if(n){var r=Sz(n,2)[1],o=je.start(e,r);if(He.equals(t.anchor,o))return!0}return!1}LD({target:"Array",proto:!0,forced:!mz||!bz},{concat:function(e){var t,n,r,o,i,a=xF(this),s=oz(a,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(wz(i=-1===t?a:arguments[t])){if(u+(o=dD(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&hz(s,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");hz(s,u++,i)}return s.length=u,s}});var Ez=[].join,Oz=yF!=Object,kz=uz("join",",");LD({target:"Array",proto:!0,forced:Oz||!kz},{join:function(e){return Ez.call(bF(this),void 0===e?",":e)}});var Tz,Az={type:"table",renderElem:function(e,t,n){var r=e,o=r.withHeader,i=void 0!==o&&o,a=r.fullWidth,s=void 0!==a&&a,u=[];return i&&u.push("with-header"),s&&u.push("full-width"),mo("table",{className:u.join(" ")},mo("tbody",null,t))}},_z={type:"table-row",renderElem:function(e,t,n){return mo("tr",null,t)}},Pz={type:"table-cell",renderElem:function(e,t,n){var r=e,o=r.colSpan,i=void 0===o?1:o,a=r.rowSpan;return mo("td",{colSpan:i,rowSpan:void 0===a?1:a},t)}},jz=Object.keys||function(e){return mD(e,bD)},Cz=lF?Object.defineProperties:function(e,t){CF(e);for(var n,r=jz(t),o=r.length,i=0;o>i;)LF.f(e,n=r[i++],t[n]);return e},Nz=sD("document","documentElement"),Lz=YF("IE_PROTO"),Iz=function(){},Rz=function(e){return"<script>"+e+"<\/script>"},Mz=function(){try{Tz=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;Mz=Tz?function(e){e.write(Rz("")),e.close();var t=e.parentWindow.Object;return e=null,t}(Tz):((t=AF("iframe")).style.display="none",Nz.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Rz("document.F=Object")),e.close(),e.F);for(var n=bD.length;n--;)delete Mz.prototype[bD[n]];return Mz()};XF[Lz]=!0;var Fz=Object.create||function(e,t){var n;return null!==e?(Iz.prototype=CF(e),n=new Iz,Iz.prototype=null,n[Lz]=e):n=Mz(),void 0===t?n:Cz(n,t)},Dz=KD("unscopables"),zz=Array.prototype;null==zz[Dz]&&LF.f(zz,Dz,{configurable:!0,value:Fz(null)});var Bz=sz.findIndex,Uz=!0;"findIndex"in[]&&Array(1).findIndex((function(){Uz=!1})),LD({target:"Array",proto:!0,forced:Uz},{findIndex:function(e){return Bz(this,e,arguments.length>1?arguments[1]:void 0)}}),zz[Dz].findIndex=!0;var Hz={type:"table-cell",elemToHtml:function(e,t,n){var r=e,o=r.colSpan,i=void 0===o?1:o,a=r.rowSpan,s=void 0===a?1:a,u="td",l=_p.getParentNode(n,e);if(null==l)throw new Error("Cannot get table row node by cell node "+JSON.stringify(e));var c=_p.getParentNode(n,l);if(null==c)throw new Error("Cannot get table node by cell node "+JSON.stringify(e));return c.withHeader&&0===c.children.findIndex((function(e){return e===l}))&&(u="th"),"<"+u+' colSpan="'+i+'" rowSpan="'+s+'">'+t+"</"+u+">"}},Vz=function(){var e=CF(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function $z(e,t){return RegExp(e,t)}var Wz,qz,Gz={UNSUPPORTED_Y:uF((function(){var e=$z("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:uF((function(){var e=$z("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Kz=RegExp.prototype.exec,Yz=$F("native-string-replace",String.prototype.replace),Xz=Kz,Zz=(Wz=/a/,qz=/b*/g,Kz.call(Wz,"a"),Kz.call(qz,"a"),0!==Wz.lastIndex||0!==qz.lastIndex),Jz=Gz.UNSUPPORTED_Y||Gz.BROKEN_CARET,Qz=void 0!==/()??/.exec("")[1];(Zz||Qz||Jz)&&(Xz=function(e){var t,n,r,o,i=this,a=Jz&&i.sticky,s=Vz.call(i),u=i.source,l=0,c=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),c=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",c=" "+c,l++),n=new RegExp("^(?:"+u+")",s)),Qz&&(n=new RegExp("^"+u+"$(?!\\s)",s)),Zz&&(t=i.lastIndex),r=Kz.call(a?n:i,c),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Zz&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),Qz&&r&&r.length>1&&Yz.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),LD({target:"RegExp",proto:!0,forced:/./.exec!==Xz},{exec:Xz});var eB={};eB[KD("toStringTag")]="z";var tB="[object z]"===String(eB),nB=KD("toStringTag"),rB="Arguments"==gF(function(){return arguments}()),oB=tB?gF:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),nB))?n:rB?gF(t):"Object"==(r=gF(t))&&"function"==typeof t.callee?"Arguments":r},iB=tB?{}.toString:function(){return"[object "+oB(this)+"]"};tB||oD(Object.prototype,"toString",iB,{unsafe:!0});var aB=RegExp.prototype,sB=aB.toString,uB=uF((function(){return"/a/b"!=sB.call({source:"a",flags:"b"})})),lB="toString"!=sB.name;(uB||lB)&&oD(RegExp.prototype,"toString",(function(){var e=CF(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in aB)?Vz.call(e):n)}),{unsafe:!0}),Ln.fn.append=Xn,Ln.fn.on=Un,Ln.fn.focus=or,Ln.fn.attr=Fn,Ln.fn.val=Bn,Ln.fn.html=Kn,Ln.fn.dataset=zn,Ln.fn.addClass=In,Ln.fn.removeClass=Rn,Ln.fn.children=Qn,Ln.fn.each=Gn;var cB=vz("slice"),fB=KD("species"),dB=[].slice,pB=Math.max;LD({target:"Array",proto:!0,forced:!cB},{slice:function(e,t){var n,r,o,i=bF(this),a=dD(i.length),s=gD(e,a),u=gD(void 0===t?a:t,a);if(nz(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!nz(n.prototype)?wF(n)&&null===(n=n[fB])&&(n=void 0):n=void 0,n===Array||void 0===n))return dB.call(i,s,u);for(r=new(void 0===n?Array:n)(pB(u-s,0)),o=0;s<u;s++,o++)s in i&&hz(r,o,i[s]);return r.length=o,r}});var hB=function(){function e(){this.title=Km("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!We.isCollapsed(t)||null!=Sz(je.nodes(e,{match:function(e){return _p.checkNodeType(e,"table")},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this;if(this.$content)return this.$content;for(var n=Ln('<div class="w-e-panel-content-table"></div>'),r=Ln("<table></table>"),o=0;o<10;o++){for(var i=Ln("<tr></tr>"),a=0;a<10;a++){var s=Ln("<td></td>");s.attr("data-x",a.toString()),s.attr("data-y",o.toString()),i.append(s),s.on("mouseenter",(function(e){var t=e.target;if(null!=t){var n=Ln(t).dataset(),o=n.x,i=n.y;r.children().each((function(e){Ln(e).children().each((function(e){var t=Ln(e),n=t.dataset(),r=n.x,a=n.y;r<=o&&a<=i?t.addClass("active"):t.removeClass("active")}))}))}})),s.on("mousedown",(function(n){n.preventDefault();var r=n.target;if(null!=r){var o=Ln(r).dataset(),i=o.x,a=o.y;t.insertTable(e,a+1,i+1)}}))}r.append(i)}return n.append(r),this.$content=n,n},e.prototype.insertTable=function(e,t,n){var r=parseInt(t,10),o=parseInt(n,10);if(r&&o&&!(r<=0||o<=0)){var i=_p.getSelectedNodeByType(e,"paragraph");i&&""===Ie.string(i)&&ct.removeNodes(e,{mode:"highest"});var a=function(e,t){for(var n=[],r=0;r<e;r++){for(var o=[],i=0;i<t;i++)o.push({type:"table-cell",children:[{text:""}]});n.push({type:"table-row",children:o})}return{type:"table",withHeader:!0,children:n}}(r,o);ct.insertNodes(e,a,{mode:"highest"})}},e}(),gB=function(){function e(){this.title=Km("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==_p.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){this.isDisabled(e)||ct.removeNodes(e,{mode:"highest"})},e}(),vB=function(){function e(){this.title=Km("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!We.isCollapsed(t)||null==_p.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Sz(je.nodes(e,{match:function(e){return _p.checkNodeType(e,"table-cell")},universal:!0}),1),r=Sz(n[0],2),o=r[0],i=r[1],a=_p.getParentNode(e,o),s=(null==a?void 0:a.children.length)||0;if(0!==s){for(var u={type:"table-row",children:[]},l=0;l<s;l++)u.children.push({type:"table-cell",children:[{text:""}]});var c=De.parent(i),f=De.next(c);ct.insertNodes(e,u,{at:f})}}},e}(),yB=function(){function e(){this.title=Km("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!We.isCollapsed(t)||null==_p.getSelectedNodeByType(e,"table-row")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Sz(je.nodes(e,{match:function(e){return _p.checkNodeType(e,"table-row")},universal:!0}),1),r=Sz(n[0],2),o=r[0],i=r[1],a=_p.getParentNode(e,o);((null==a?void 0:a.children.length)||0)<=1?ct.removeNodes(e,{mode:"highest"}):ct.removeNodes(e,{at:i})}},e}(),mB=function(){function e(){this.title=Km("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!We.isCollapsed(t)||null==_p.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Sz(je.nodes(e,{match:function(e){return _p.checkNodeType(e,"table-cell")},universal:!0}),1),r=Sz(n[0],2),o=r[0],i=r[1],a=i.slice(0,1);_p.recordChangingPath(e,a);var s=_p.getParentNode(e,o);if(null!=s){var u=_p.getParentNode(e,s);null!=u&&((u.children||[]).forEach((function(t){Te.isElement(t)&&(t.children||[]).forEach((function(t){var n=_p.findPath(e,t);n.length===i.length&&ft(n.slice(-1),i.slice(-1))&&ct.insertNodes(e,{type:"table-cell",children:[{text:""}]},{at:n})}))})),_p.deleteChangingPath(e))}}},e}(),bB=function(){function e(){this.title=Km("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!We.isCollapsed(t)||null==_p.getSelectedNodeByType(e,"table-cell")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=Sz(je.nodes(e,{match:function(e){return _p.checkNodeType(e,"table-cell")},universal:!0}),1),r=Sz(n[0],2),o=r[0],i=r[1],a=_p.getParentNode(e,o),s=(null==a?void 0:a.children.length)||0;if(!a||s<=1)ct.removeNodes(e,{mode:"highest"});else{var u=i.slice(0,1);_p.recordChangingPath(e,u);var l=_p.getParentNode(e,a);null!=l&&((l.children||[]).forEach((function(t){Te.isElement(t)&&(t.children||[]).forEach((function(t){var n=_p.findPath(e,t);n.length===i.length&&ft(n.slice(-1),i.slice(-1))&&ct.removeNodes(e,{at:n})}))})),_p.deleteChangingPath(e))}}},e}(),wB=function(){function e(){this.title=Km("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=_p.getSelectedNodeByType(e,"table");return null!=t&&!!t.withHeader},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!We.isCollapsed(t)||null==_p.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={withHeader:!t||null};ct.setNodes(e,n,{mode:"highest"})}},e}(),SB=function(){function e(){this.title=Km("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){var t=_p.getSelectedNodeByType(e,"table");return null!=t&&!!t.fullWidth},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!We.isCollapsed(t)||null==_p.getSelectedNodeByType(e,"table")},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={fullWidth:!t||null};ct.setNodes(e,n,{mode:"highest"})}},e}(),xB={renderElems:[Az,_z,Pz],elemsToHtml:[{type:"table",elemToHtml:function(e,t,n){var r=e.fullWidth,o="";return void 0!==r&&r&&(o+="width: 100%;"),'<table style="'+o+'"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t,n){return"<tr>"+t+"</tr>"}},Hz],menus:[{key:"insertTable",factory:function(){return new hB}},{key:"deleteTable",factory:function(){return new gB}},{key:"insertTableRow",factory:function(){return new vB}},{key:"deleteTableRow",factory:function(){return new yB}},{key:"insertTableCol",factory:function(){return new mB}},{key:"deleteTableCol",factory:function(){return new bB}},{key:"tableHeader",factory:function(){return new wB}},{key:"tableFullWidth",factory:function(){return new SB}}],editorPlugin:function(e){var t=e.insertBreak,n=e.deleteBackward,r=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e;return a.insertBreak=function(){null==_p.getSelectedNodeByType(a,"table")?t():a.insertText("\n")},a.deleteBackward=function(e){xz(a)||n(e)},a.deleteForward=function(e){xz(a)||r(e)},a.normalizeNode=function(e){var t=Sz(e,2),n=t[0],r=t[1];if("table"!==_p.getNodeType(n))return o([n,r]);var i=n.children,s=void 0===i?[]:i,u=a.children||[],l=u.length;if(u[0]===n){var c={type:"paragraph",children:[{text:""}]};ct.insertNodes(a,c,{at:r})}u[l-1]===n&&(c={type:"paragraph",children:[{text:""}]},ct.insertNodes(a,c,{at:[r[0]+1]}));var f=u[r[0]+1]||{};if(Te.isElement(f)){var d=f.type,p=void 0===d?"":d;if("paragraph"!==p&&"blockquote"!==p&&!p.startsWith("header")){c={type:"paragraph",children:[{text:""}]};var h=[r[0]+1];ct.insertNodes(a,c,{at:h})}}var g=u[r[0]-1]||{};if(Te.isElement(g)&&("table"===_p.getNodeType(g)||a.isVoid(g))&&(c={type:"paragraph",children:[{text:""}]},ct.insertNodes(a,c,{at:r})),_p.isChangingPath(a,r))return o([n,r]);var v=0;s.forEach((function(e){if(Te.isElement(e)){var t=(e.children||[]).length;v<t&&(v=t)}})),s.forEach((function(e,t){if(Te.isElement(e)){var n=e.children||[],o=r.concat(t);if(n.length<v)for(var i=n.length;i<v;i++){var s=o.concat(i);ct.insertNodes(a,{type:"table-cell",children:[{text:""}]},{at:s})}n.forEach((function(e,t){if(Te.isElement(e)&&"table-cell"!==e.type){var n=o.concat(t);ct.setNodes(a,{type:"table-cell"},{at:n})}}))}}))},a.insertData=function(e){if(null!=_p.getSelectedNodeByType(a,"table")){var t=e.getData("text/plain");je.insertText(a,t)}else i(e)},a}};qm("en",{videoModule:{delete:"Delete",insertVideo:"Insert video",videoSrc:"video source",insertPlaceHolder:"video file url, or third-party <iframe>",ok:"Ok"}}),qm("zh-CN",{videoModule:{delete:"删除视频",insertVideo:"插入视频",videoSrc:"视频地址",insertPlaceHolder:"视频文件 url 或第三方 <iframe>",ok:"确定"}});var EB="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function OB(e){var t={exports:{}};return e(t,t.exports),t.exports}var kB=function(e){return e&&e.Math==Math&&e},TB=kB("object"==typeof globalThis&&globalThis)||kB("object"==typeof window&&window)||kB("object"==typeof self&&self)||kB("object"==typeof EB&&EB)||function(){return this}()||Function("return this")(),AB=function(e){try{return!!e()}catch(e){return!0}},_B=!AB((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),PB={}.propertyIsEnumerable,jB=Object.getOwnPropertyDescriptor,CB={f:jB&&!PB.call({1:2},1)?function(e){var t=jB(this,e);return!!t&&t.enumerable}:PB},NB=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},LB={}.toString,IB=function(e){return LB.call(e).slice(8,-1)},RB="".split,MB=AB((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==IB(e)?RB.call(e,""):Object(e)}:Object,FB=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},DB=function(e){return MB(FB(e))},zB=function(e){return"object"==typeof e?null!==e:"function"==typeof e},BB=function(e,t){if(!zB(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!zB(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!zB(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!zB(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},UB=function(e){return Object(FB(e))},HB={}.hasOwnProperty,VB=Object.hasOwn||function(e,t){return HB.call(UB(e),t)},$B=TB.document,WB=zB($B)&&zB($B.createElement),qB=!_B&&!AB((function(){return 7!=Object.defineProperty(("div",WB?$B.createElement("div"):{}),"a",{get:function(){return 7}}).a})),GB=Object.getOwnPropertyDescriptor,KB={f:_B?GB:function(e,t){if(e=DB(e),t=BB(t,!0),qB)try{return GB(e,t)}catch(e){}if(VB(e,t))return NB(!CB.f.call(e,t),e[t])}},YB=function(e){if(!zB(e))throw TypeError(String(e)+" is not an object");return e},XB=Object.defineProperty,ZB={f:_B?XB:function(e,t,n){if(YB(e),t=BB(t,!0),YB(n),qB)try{return XB(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},JB=_B?function(e,t,n){return ZB.f(e,t,NB(1,n))}:function(e,t,n){return e[t]=n,e},QB=function(e,t){try{JB(TB,e,t)}catch(n){TB[e]=t}return t},eU=TB["__core-js_shared__"]||QB("__core-js_shared__",{}),tU=Function.toString;"function"!=typeof eU.inspectSource&&(eU.inspectSource=function(e){return tU.call(e)});var nU,rU,oU,iU=eU.inspectSource,aU=TB.WeakMap,sU="function"==typeof aU&&/native code/.test(iU(aU)),uU=OB((function(e){(e.exports=function(e,t){return eU[e]||(eU[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),lU=0,cU=Math.random(),fU=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++lU+cU).toString(36)},dU=uU("keys"),pU={},hU=TB.WeakMap;if(sU||eU.state){var gU=eU.state||(eU.state=new hU),vU=gU.get,yU=gU.has,mU=gU.set;nU=function(e,t){if(yU.call(gU,e))throw new TypeError("Object already initialized");return t.facade=e,mU.call(gU,e,t),t},rU=function(e){return vU.call(gU,e)||{}},oU=function(e){return yU.call(gU,e)}}else{var bU=dU["state"]||(dU.state=fU("state"));pU[bU]=!0,nU=function(e,t){if(VB(e,bU))throw new TypeError("Object already initialized");return t.facade=e,JB(e,bU,t),t},rU=function(e){return VB(e,bU)?e[bU]:{}},oU=function(e){return VB(e,bU)}}var wU,SU,xU={set:nU,get:rU,has:oU,enforce:function(e){return oU(e)?rU(e):nU(e,{})},getterFor:function(e){return function(t){var n;if(!zB(t)||(n=rU(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},EU=OB((function(e){var t=xU.get,n=xU.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var a,s=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||VB(o,"name")||JB(o,"name",t),(a=n(o)).source||(a.source=r.join("string"==typeof t?t:""))),e!==TB?(s?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=o:JB(e,t,o)):u?e[t]=o:QB(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||iU(this)}))})),OU=TB,kU=function(e){return"function"==typeof e?e:void 0},TU=function(e,t){return arguments.length<2?kU(OU[e])||kU(TB[e]):OU[e]&&OU[e][t]||TB[e]&&TB[e][t]},AU=Math.ceil,_U=Math.floor,PU=function(e){return isNaN(e=+e)?0:(e>0?_U:AU)(e)},jU=Math.min,CU=function(e){return e>0?jU(PU(e),9007199254740991):0},NU=Math.max,LU=Math.min,IU=function(e,t){var n=PU(e);return n<0?NU(n+t,0):LU(n,t)},RU=function(e){return function(t,n,r){var o,i=DB(t),a=CU(i.length),s=IU(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},MU=(RU(!0),RU(!1)),FU=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),DU={f:Object.getOwnPropertyNames||function(e){return function(e,t){var n,r=DB(e),o=0,i=[];for(n in r)!VB(pU,n)&&VB(r,n)&&i.push(n);for(;t.length>o;)VB(r,n=t[o++])&&(~MU(i,n)||i.push(n));return i}(e,FU)}},zU={f:Object.getOwnPropertySymbols},BU=TU("Reflect","ownKeys")||function(e){var t=DU.f(YB(e)),n=zU.f;return n?t.concat(n(e)):t},UU=function(e,t){for(var n=BU(t),r=ZB.f,o=KB.f,i=0;i<n.length;i++){var a=n[i];VB(e,a)||r(e,a,o(t,a))}},HU=/#|\.prototype\./,VU=function(e,t){var n=WU[$U(e)];return n==GU||n!=qU&&("function"==typeof t?AB(t):!!t)},$U=VU.normalize=function(e){return String(e).replace(HU,".").toLowerCase()},WU=VU.data={},qU=VU.NATIVE="N",GU=VU.POLYFILL="P",KU=VU,YU=KB.f,XU=function(e,t){var n,r,o,i,a,s=e.target,u=e.global,l=e.stat;if(n=u?TB:l?TB[s]||QB(s,{}):(TB[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=YU(n,r))&&a.value:n[r],!KU(u?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;UU(i,o)}(e.sham||o&&o.sham)&&JB(i,"sham",!0),EU(n,r,i,e)}},ZU=TU("navigator","userAgent")||"",JU=TB.process,QU=JU&&JU.versions,eH=QU&&QU.v8;eH?SU=(wU=eH.split("."))[0]<4?1:wU[0]+wU[1]:ZU&&(!(wU=ZU.match(/Edge\/(\d+)/))||wU[1]>=74)&&(wU=ZU.match(/Chrome\/(\d+)/))&&(SU=wU[1]);var tH,nH=SU&&+SU,rH=!!Object.getOwnPropertySymbols&&!AB((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&nH&&nH<41})),oH=rH&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,iH=uU("wks"),aH=TB.Symbol,sH=oH?aH:aH&&aH.withoutSetter||fU,uH=function(e){return VB(iH,e)&&(rH||"string"==typeof iH[e])||(rH&&VB(aH,e)?iH[e]=aH[e]:iH[e]=sH("Symbol."+e)),iH[e]},lH=uH("match"),cH=function(e){if(function(e){var t;return zB(e)&&(void 0!==(t=e[lH])?!!t:"RegExp"==IB(e))}(e))throw TypeError("The method doesn't accept regular expressions");return e},fH=uH("match"),dH=KB.f,pH="".startsWith,hH=Math.min,gH=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[fH]=!1,"/./"[e](t)}catch(e){}}return!1}("startsWith");
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function vH(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function yH(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function mH(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}XU({target:"String",proto:!0,forced:!(!gH&&(tH=dH(String.prototype,"startsWith"),tH&&!tH.writable)||gH)},{startsWith:function(e){var t=String(FB(this));cH(e);var n=CU(hH(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return pH?pH.call(t,r,n):t.slice(n,n+r.length)===r}});var bH="\t\n\v\f\r                　\u2028\u2029\ufeff",wH="["+bH+"]",SH=RegExp("^"+wH+wH+"*"),xH=RegExp(wH+wH+"*$"),EH=function(e){return function(t){var n=String(FB(t));return 1&e&&(n=n.replace(SH,"")),2&e&&(n=n.replace(xH,"")),n}},OH={start:EH(1),end:EH(2),trim:EH(3)}.trim;XU({target:"String",proto:!0,forced:("trim",AB((function(){return!!bH.trim()||"​᠎"!="​᠎".trim()||"trim"!==bH.trim.name})))},{trim:function(){return OH(this)}});var kH={type:"video",renderElem:function(e,t,n){var r=e.src,o=void 0===r?"":r,i=_p.isNodeSelected(n,e);return 0===o.trim().indexOf("<iframe")?mo("div",{contentEditable:!1,className:"w-e-textarea-video-container","data-selected":i?"true":"",innerHTML:o}):mo("div",{contentEditable:!1,className:"w-e-textarea-video-container","data-selected":i?"true":""},mo("video",{controls:!0},mo("source",{src:o,type:"video/mp4"}),"Sorry, your browser doesn't support embedded videos.\n 抱歉，浏览器不支持 video 视频"))}},TH=function(){var e=YB(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function AH(e,t){return RegExp(e,t)}var _H,PH,jH={UNSUPPORTED_Y:AB((function(){var e=AH("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:AB((function(){var e=AH("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},CH=RegExp.prototype.exec,NH=uU("native-string-replace",String.prototype.replace),LH=CH,IH=(_H=/a/,PH=/b*/g,CH.call(_H,"a"),CH.call(PH,"a"),0!==_H.lastIndex||0!==PH.lastIndex),RH=jH.UNSUPPORTED_Y||jH.BROKEN_CARET,MH=void 0!==/()??/.exec("")[1];(IH||MH||RH)&&(LH=function(e){var t,n,r,o,i=this,a=RH&&i.sticky,s=TH.call(i),u=i.source,l=0,c=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),c=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",c=" "+c,l++),n=new RegExp("^(?:"+u+")",s)),MH&&(n=new RegExp("^"+u+"$(?!\\s)",s)),IH&&(t=i.lastIndex),r=CH.call(a?n:i,c),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:IH&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),MH&&r&&r.length>1&&NH.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var FH=LH;XU({target:"RegExp",proto:!0,forced:/./.exec!==FH},{exec:FH}),Ln.fn.append=Xn,Ln.fn.on=Un,Ln.fn.focus=or,Ln.fn.attr=Fn,Ln.fn.val=Bn,Ln.fn.html=Kn;var DH=Array.isArray||function(e){return"Array"==IB(e)},zH=function(e,t,n){var r=BB(t);r in e?ZB.f(e,r,NB(0,n)):e[r]=n},BH=uH("species"),UH=nH>=51||!AB((function(){var e=[];return(e.constructor={})[BH]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),HH=uH("species"),VH=[].slice,$H=Math.max;XU({target:"Array",proto:!0,forced:!UH},{slice:function(e,t){var n,r,o,i=DB(this),a=CU(i.length),s=IU(e,a),u=IU(void 0===t?a:t,a);if(DH(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!DH(n.prototype)?zB(n)&&null===(n=n[HH])&&(n=void 0):n=void 0,n===Array||void 0===n))return VH.call(i,s,u);for(r=new(void 0===n?Array:n)($H(u-s,0)),o=0;s<u;s++,o++)s in i&&zH(r,o,i[s]);return r.length=o,r}});var WH={};WH[uH("toStringTag")]="z";var qH="[object z]"===String(WH),GH=uH("toStringTag"),KH="Arguments"==IB(function(){return arguments}()),YH=qH?IB:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),GH))?n:KH?IB(t):"Object"==(r=IB(t))&&"function"==typeof t.callee?"Arguments":r},XH=qH?{}.toString:function(){return"[object "+YH(this)+"]"};qH||EU(Object.prototype,"toString",XH,{unsafe:!0});var ZH=RegExp.prototype,JH=ZH.toString,QH=AB((function(){return"/a/b"!=JH.call({source:"a",flags:"b"})})),eV="toString"!=JH.name;(QH||eV)&&EU(RegExp.prototype,"toString",(function(){var e=YB(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in ZH)?TH.call(e):n)}),{unsafe:!0});uH("species");var tV=RegExp.prototype,nV=!AB((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),rV="$0"==="a".replace(/./,"$0"),oV=uH("replace"),iV=!!/./[oV]&&""===/./[oV]("a","$0"),aV=(AB((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),function(e){return function(t,n){var r,o,i=String(FB(t)),a=PU(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}}),sV=(aV(!1),aV(!0)),uV=function(e,t,n){return t+(n?sV(e,t).length:1)},lV=Math.floor,cV="".replace,fV=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,dV=/\$([$&'`]|\d{1,2})/g,pV=function(e,t,n,r,o,i){var a=n+e.length,s=r.length,u=dV;return void 0!==o&&(o=UB(o),u=fV),cV.call(i,u,(function(i,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":l=o[u.slice(1,-1)];break;default:var c=+u;if(0===c)return i;if(c>s){var f=lV(c/10);return 0===f?i:f<=s?void 0===r[f-1]?u.charAt(1):r[f-1]+u.charAt(1):i}l=r[c-1]}return void 0===l?"":l}))},hV=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==IB(e))throw TypeError("RegExp#exec called on incompatible receiver");return FH.call(e,t)},gV=Math.max,vV=Math.min;function yV(){return void 0===(e="w-e-insert-video")&&(e="r"),e+"-"+Date.now().toString().slice(-5)+Math.random().toString(36).slice(-5);var e}!function(e,t,n,r){var o=uH(e),i=!AB((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!AB((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||!nV||!rV||iV){var s=/./[o],u=function(e,t,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,a=o?"$":"$0";return[function(n,r){var o=FB(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(a)){var s=n(t,e,this,r);if(s.done)return s.value}var u=YB(e),l=String(this),c="function"==typeof r;c||(r=String(r));var f=u.global;if(f){var d=u.unicode;u.lastIndex=0}for(var p=[];;){var h=hV(u,l);if(null===h)break;if(p.push(h),!f)break;""===String(h[0])&&(u.lastIndex=uV(l,CU(u.lastIndex),d))}for(var g,v="",y=0,m=0;m<p.length;m++){h=p[m];for(var b=String(h[0]),w=gV(vV(PU(h.index),l.length),0),S=[],x=1;x<h.length;x++)S.push(void 0===(g=h[x])?g:String(g));var E=h.groups;if(c){var O=[b].concat(S,w,l);void 0!==E&&O.push(E);var k=String(r.apply(void 0,O))}else k=pV(b,l,w,S,E,r);w>=y&&(v+=l.slice(y,w)+k,y=w+b.length)}return v+l.slice(y)}]}(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===FH||a===tV.exec?i&&!o?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:rV,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:iV}),l=u[0],c=u[1];EU(String.prototype,e,l),EU(tV,o,(function(e,t){return c.call(e,this,t)}))}}("replace");var mV=function(){function e(){this.title=Km("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=yV(),this.buttonId=yV()}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return null==t||!We.isCollapsed(t)},e.prototype.getModalPositionNode=function(e){return null},e.prototype.getModalContentElem=function(e){var t=this,n=this.srcInputId,r=this.buttonId,o=mH(Dy(Km("videoModule.videoSrc"),n,Km("videoModule.insertPlaceHolder")),2),i=o[0],a=o[1],s=mH(zy(r,Km("videoModule.ok")),1)[0];if(null==this.$content){var u=Ln("<div></div>");u.on("click","#"+r,(function(r){return vH(t,void 0,void 0,(function(){var t;return yH(this,(function(o){switch(o.label){case 0:return r.preventDefault(),t=Ln("#"+n).val().trim(),[4,this.insertVideo(e,t)];case 1:return o.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=u}var l=this.$content;return l.html(""),l.append(i),l.append(s),a.val(""),setTimeout((function(){Ln("#"+n).focus()})),l},e.prototype.insertVideo=function(e,t){return vH(this,void 0,void 0,(function(){var n,r,o,i;return yH(this,(function(a){switch(a.label){case 0:return t?(e.restoreSelection(),this.isDisabled(e)?[2]:(n=e.getMenuConfig("insertVideo"),r=n.onInsertedVideo,[4,(0,n.checkVideo)(t)])):[2];case 1:return"string"==typeof(o=a.sent())?(e.alert(o,"error"),[2]):(null==o||(i={type:"video",src:(s=t,s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),children:[{text:""}]},ct.insertNodes(e,i),r(i)),[2])}var s}))}))},e}(),bV=function(){function e(){this.title=Km("videoModule.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return null==e.selection||null==_p.getSelectedNodeByType(e,"video")},e.prototype.exec=function(e,t){this.isDisabled(e)||ct.removeNodes(e,{match:function(e){return _p.checkNodeType(e,"video")}})},e}(),wV={renderElems:[kH],elemsToHtml:[{type:"video",elemToHtml:function(e,t,n){var r=e.src,o=void 0===r?"":r,i='<div class="wangeditor-video-container">\n';return 0===o.trim().indexOf("<iframe")?i+=o:i+='<video controls><source src="'+o+'" type="video/mp4"/></video>',i+"\n</div>"}}],menus:[{key:"insertVideo",factory:function(){return new mV},config:{onInsertedVideo:function(e){},checkVideo:function(e){return!0}}},{key:"deleteVideo",factory:function(){return new bV}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return"video"===e.type||t(e)},r.normalizeNode=function(e){var t=mH(e,2),o=t[0],i=t[1];if("video"===_p.getNodeType(o)){var a=(r.children||[])[i[0]+1]||{},s=_p.getNodeType(a);if("paragraph"!==s&&"blockquote"!==s&&!s.startsWith("header")){var u=[i[0]+1];ct.insertNodes(r,{type:"paragraph",children:[{text:""}]},{at:u})}}return n([o,i])},r}};qm("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),qm("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var SV="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function xV(e){var t={exports:{}};return e(t,t.exports),t.exports}var EV=function(e){return e&&e.Math==Math&&e},OV=EV("object"==typeof globalThis&&globalThis)||EV("object"==typeof window&&window)||EV("object"==typeof self&&self)||EV("object"==typeof SV&&SV)||function(){return this}()||Function("return this")(),kV=function(e){try{return!!e()}catch(e){return!0}},TV=!kV((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),AV={}.propertyIsEnumerable,_V=Object.getOwnPropertyDescriptor,PV={f:_V&&!AV.call({1:2},1)?function(e){var t=_V(this,e);return!!t&&t.enumerable}:AV},jV=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},CV={}.toString,NV=function(e){return CV.call(e).slice(8,-1)},LV="".split,IV=kV((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==NV(e)?LV.call(e,""):Object(e)}:Object,RV=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},MV=function(e){return IV(RV(e))},FV=function(e){return"object"==typeof e?null!==e:"function"==typeof e},DV=function(e,t){if(!FV(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!FV(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!FV(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!FV(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},zV=function(e){return Object(RV(e))},BV={}.hasOwnProperty,UV=Object.hasOwn||function(e,t){return BV.call(zV(e),t)},HV=OV.document,VV=FV(HV)&&FV(HV.createElement),$V=function(e){return VV?HV.createElement(e):{}},WV=!TV&&!kV((function(){return 7!=Object.defineProperty($V("div"),"a",{get:function(){return 7}}).a})),qV=Object.getOwnPropertyDescriptor,GV={f:TV?qV:function(e,t){if(e=MV(e),t=DV(t,!0),WV)try{return qV(e,t)}catch(e){}if(UV(e,t))return jV(!PV.f.call(e,t),e[t])}},KV=function(e){if(!FV(e))throw TypeError(String(e)+" is not an object");return e},YV=Object.defineProperty,XV={f:TV?YV:function(e,t,n){if(KV(e),t=DV(t,!0),KV(n),WV)try{return YV(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},ZV=TV?function(e,t,n){return XV.f(e,t,jV(1,n))}:function(e,t,n){return e[t]=n,e},JV=function(e,t){try{ZV(OV,e,t)}catch(n){OV[e]=t}return t},QV=OV["__core-js_shared__"]||JV("__core-js_shared__",{}),e$=Function.toString;"function"!=typeof QV.inspectSource&&(QV.inspectSource=function(e){return e$.call(e)});var t$,n$,r$,o$=QV.inspectSource,i$=OV.WeakMap,a$="function"==typeof i$&&/native code/.test(o$(i$)),s$=xV((function(e){(e.exports=function(e,t){return QV[e]||(QV[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),u$=0,l$=Math.random(),c$=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++u$+l$).toString(36)},f$=s$("keys"),d$=function(e){return f$[e]||(f$[e]=c$(e))},p$={},h$=OV.WeakMap;if(a$||QV.state){var g$=QV.state||(QV.state=new h$),v$=g$.get,y$=g$.has,m$=g$.set;t$=function(e,t){if(y$.call(g$,e))throw new TypeError("Object already initialized");return t.facade=e,m$.call(g$,e,t),t},n$=function(e){return v$.call(g$,e)||{}},r$=function(e){return y$.call(g$,e)}}else{var b$=d$("state");p$[b$]=!0,t$=function(e,t){if(UV(e,b$))throw new TypeError("Object already initialized");return t.facade=e,ZV(e,b$,t),t},n$=function(e){return UV(e,b$)?e[b$]:{}},r$=function(e){return UV(e,b$)}}var w$,S$,x$={set:t$,get:n$,has:r$,enforce:function(e){return r$(e)?n$(e):t$(e,{})},getterFor:function(e){return function(t){var n;if(!FV(t)||(n=n$(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},E$=xV((function(e){var t=x$.get,n=x$.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var a,s=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||UV(o,"name")||ZV(o,"name",t),(a=n(o)).source||(a.source=r.join("string"==typeof t?t:""))),e!==OV?(s?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=o:ZV(e,t,o)):u?e[t]=o:JV(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||o$(this)}))})),O$=OV,k$=function(e){return"function"==typeof e?e:void 0},T$=function(e,t){return arguments.length<2?k$(O$[e])||k$(OV[e]):O$[e]&&O$[e][t]||OV[e]&&OV[e][t]},A$=Math.ceil,_$=Math.floor,P$=function(e){return isNaN(e=+e)?0:(e>0?_$:A$)(e)},j$=Math.min,C$=function(e){return e>0?j$(P$(e),9007199254740991):0},N$=Math.max,L$=Math.min,I$=function(e,t){var n=P$(e);return n<0?N$(n+t,0):L$(n,t)},R$=function(e){return function(t,n,r){var o,i=MV(t),a=C$(i.length),s=I$(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},M$=(R$(!0),R$(!1)),F$=function(e,t){var n,r=MV(e),o=0,i=[];for(n in r)!UV(p$,n)&&UV(r,n)&&i.push(n);for(;t.length>o;)UV(r,n=t[o++])&&(~M$(i,n)||i.push(n));return i},D$=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],z$=D$.concat("length","prototype"),B$={f:Object.getOwnPropertyNames||function(e){return F$(e,z$)}},U$={f:Object.getOwnPropertySymbols},H$=T$("Reflect","ownKeys")||function(e){var t=B$.f(KV(e)),n=U$.f;return n?t.concat(n(e)):t},V$=function(e,t){for(var n=H$(t),r=XV.f,o=GV.f,i=0;i<n.length;i++){var a=n[i];UV(e,a)||r(e,a,o(t,a))}},$$=/#|\.prototype\./,W$=function(e,t){var n=G$[q$(e)];return n==Y$||n!=K$&&("function"==typeof t?kV(t):!!t)},q$=W$.normalize=function(e){return String(e).replace($$,".").toLowerCase()},G$=W$.data={},K$=W$.NATIVE="N",Y$=W$.POLYFILL="P",X$=W$,Z$=GV.f,J$=function(e,t){var n,r,o,i,a,s=e.target,u=e.global,l=e.stat;if(n=u?OV:l?OV[s]||JV(s,{}):(OV[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=Z$(n,r))&&a.value:n[r],!X$(u?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;V$(i,o)}(e.sham||o&&o.sham)&&ZV(i,"sham",!0),E$(n,r,i,e)}},Q$=Array.isArray||function(e){return"Array"==NV(e)},eW=T$("navigator","userAgent")||"",tW=OV.process,nW=tW&&tW.versions,rW=nW&&nW.v8;rW?S$=(w$=rW.split("."))[0]<4?1:w$[0]+w$[1]:eW&&(!(w$=eW.match(/Edge\/(\d+)/))||w$[1]>=74)&&(w$=eW.match(/Chrome\/(\d+)/))&&(S$=w$[1]);var oW=S$&&+S$,iW=!!Object.getOwnPropertySymbols&&!kV((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&oW&&oW<41})),aW=iW&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,sW=s$("wks"),uW=OV.Symbol,lW=aW?uW:uW&&uW.withoutSetter||c$,cW=function(e){return UV(sW,e)&&(iW||"string"==typeof sW[e])||(iW&&UV(uW,e)?sW[e]=uW[e]:sW[e]=lW("Symbol."+e)),sW[e]},fW=cW("species"),dW=oW>=51||!kV((function(){var e=[];return(e.constructor={})[fW]=function(){return{foo:1}},1!==e.slice(Boolean).foo})),pW=cW("species"),hW=[].slice,gW=Math.max;J$({target:"Array",proto:!0,forced:!dW},{slice:function(e,t){var n,r,o,i,a,s,u,l=MV(this),c=C$(l.length),f=I$(e,c),d=I$(void 0===t?c:t,c);if(Q$(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!Q$(n.prototype)?FV(n)&&null===(n=n[pW])&&(n=void 0):n=void 0,n===Array||void 0===n))return hW.call(l,f,d);for(r=new(void 0===n?Array:n)(gW(d-f,0)),o=0;f<d;f++,o++)f in l&&(i=r,a=o,s=l[f],void 0,(u=DV(a))in i?XV.f(i,u,jV(0,s)):i[u]=s);return r.length=o,r}});var vW=function(){var e=KV(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function yW(e,t){return RegExp(e,t)}var mW,bW,wW={UNSUPPORTED_Y:kV((function(){var e=yW("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:kV((function(){var e=yW("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},SW=RegExp.prototype.exec,xW=s$("native-string-replace",String.prototype.replace),EW=SW,OW=(mW=/a/,bW=/b*/g,SW.call(mW,"a"),SW.call(bW,"a"),0!==mW.lastIndex||0!==bW.lastIndex),kW=wW.UNSUPPORTED_Y||wW.BROKEN_CARET,TW=void 0!==/()??/.exec("")[1];(OW||TW||kW)&&(EW=function(e){var t,n,r,o,i=this,a=kW&&i.sticky,s=vW.call(i),u=i.source,l=0,c=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),c=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",c=" "+c,l++),n=new RegExp("^(?:"+u+")",s)),TW&&(n=new RegExp("^"+u+"$(?!\\s)",s)),OW&&(t=i.lastIndex),r=SW.call(a?n:i,c),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:OW&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),TW&&r&&r.length>1&&xW.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var AW=EW;J$({target:"RegExp",proto:!0,forced:/./.exec!==AW},{exec:AW});var _W=cW("species"),PW=RegExp.prototype,jW=(kV((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),"a".replace(/./,"$0"),cW("replace")),CW=(!!/./[jW]&&/./[jW]("a","$0"),!kV((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}))),NW=cW("match"),LW=function(e){var t;return FV(e)&&(void 0!==(t=e[NW])?!!t:"RegExp"==NV(e))},IW=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},RW=cW("species"),MW=function(e){return function(t,n){var r,o,i=String(RV(t)),a=P$(n),s=i.length;return a<0||a>=s?e?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):r:e?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},FW={codeAt:MW(!1),charAt:MW(!0)},DW=FW.charAt,zW=function(e,t,n){return t+(n?DW(e,t).length:1)},BW=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==NV(e))throw TypeError("RegExp#exec called on incompatible receiver");return AW.call(e,t)},UW=wW.UNSUPPORTED_Y,HW=[].push,VW=Math.min;!function(e,t,n,r){var o=cW(e),i=!kV((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!kV((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[_W]=function(){return t},t.flags="",t[o]=/./[o],t.exec=function(){return e=!0,null},t[o](""),!e}));if(!i||!a||!CW){var s=/./[o],u=function(e,t,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var r=String(RV(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[r];if(!LW(e))return t.call(r,e,o);for(var i,a,s,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,f=new RegExp(e.source,l+"g");(i=AW.call(f,r))&&!((a=f.lastIndex)>c&&(u.push(r.slice(c,i.index)),i.length>1&&i.index<r.length&&HW.apply(u,i.slice(1)),s=i[0].length,c=a,u.length>=o));)f.lastIndex===i.index&&f.lastIndex++;return c===r.length?!s&&f.test("")||u.push(""):u.push(r.slice(c)),u.length>o?u.slice(0,o):u}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=RV(this),i=null==t?void 0:t[e];return void 0!==i?i.call(t,o,n):r.call(String(o),t,n)},function(e,o){var i=n(r,e,this,o,r!==t);if(i.done)return i.value;var a=KV(e),s=String(this),u=function(e,t){var n,r=KV(e).constructor;return void 0===r||null==(n=KV(r)[RW])?t:IW(n)}(a,RegExp),l=a.unicode,c=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(UW?"g":"y"),f=new u(UW?"^(?:"+a.source+")":a,c),d=void 0===o?4294967295:o>>>0;if(0===d)return[];if(0===s.length)return null===BW(f,s)?[s]:[];for(var p=0,h=0,g=[];h<s.length;){f.lastIndex=UW?0:h;var v,y=BW(f,UW?s.slice(h):s);if(null===y||(v=VW(C$(f.lastIndex+(UW?h:0)),s.length))===p)h=zW(s,h,l);else{if(g.push(s.slice(p,h)),g.length===d)return g;for(var m=1;m<=y.length-1;m++)if(g.push(y[m]),g.length===d)return g;h=p=v}}return g.push(s.slice(p)),g}]}(o,""[e],(function(e,t,n,r,o){var a=t.exec;return a===AW||a===PW.exec?i&&!o?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),l=u[0],c=u[1];E$(String.prototype,e,l),E$(PW,o,(function(e,t){return c.call(e,this,t)}))}r&&ZV(PW[o],"sham",!0)}("split",0,0,UW);
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var $W=function(){return($W=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function WW(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var qW,GW=function(e){if(LW(e))throw TypeError("The method doesn't accept regular expressions");return e},KW=cW("match"),YW=GV.f,XW="".startsWith,ZW=Math.min,JW=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[KW]=!1,"/./"[e](t)}catch(e){}}return!1}("startsWith"),QW=!(JW||(qW=YW(String.prototype,"startsWith"),!qW||qW.writable));function eq(e){var t=e.selection;return null==t||!We.isCollapsed(t)||!!WW(je.nodes(e,{match:function(t){var n=_p.getNodeType(t);return"code"===n||"pre"===n||"link"===n||"list-item"===n||!!n.startsWith("header")||"blockquote"===n||!!je.isVoid(e,t)},universal:!0}),1)[0]}J$({target:"String",proto:!0,forced:!QW&&!JW},{startsWith:function(e){var t=String(RV(this));GW(e);var n=C$(ZW(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return XW?XW.call(t,r,n):t.slice(n,n+r.length)===r}});var tq,nq=Object.keys||function(e){return F$(e,D$)},rq=TV?Object.defineProperties:function(e,t){KV(e);for(var n,r=nq(t),o=r.length,i=0;o>i;)XV.f(e,n=r[i++],t[n]);return e},oq=T$("document","documentElement"),iq=d$("IE_PROTO"),aq=function(){},sq=function(e){return"<script>"+e+"<\/script>"},uq=function(){try{tq=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;uq=tq?function(e){e.write(sq("")),e.close();var t=e.parentWindow.Object;return e=null,t}(tq):((t=$V("iframe")).style.display="none",oq.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(sq("document.F=Object")),e.close(),e.F);for(var n=D$.length;n--;)delete uq.prototype[D$[n]];return uq()};p$[iq]=!0;var lq=Object.create||function(e,t){var n;return null!==e?(aq.prototype=KV(e),n=new aq,aq.prototype=null,n[iq]=e):n=uq(),void 0===t?n:rq(n,t)},cq=cW("unscopables"),fq=Array.prototype;null==fq[cq]&&XV.f(fq,cq,{configurable:!0,value:lq(null)});var dq,pq,hq,gq=function(e){fq[cq][e]=!0},vq={},yq=!kV((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),mq=d$("IE_PROTO"),bq=Object.prototype,wq=yq?Object.getPrototypeOf:function(e){return e=zV(e),UV(e,mq)?e[mq]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?bq:null},Sq=cW("iterator"),xq=!1;[].keys&&("next"in(hq=[].keys())?(pq=wq(wq(hq)))!==Object.prototype&&(dq=pq):xq=!0),(null==dq||kV((function(){var e={};return dq[Sq].call(e)!==e})))&&(dq={}),UV(dq,Sq)||ZV(dq,Sq,(function(){return this}));var Eq={IteratorPrototype:dq,BUGGY_SAFARI_ITERATORS:xq},Oq=XV.f,kq=cW("toStringTag"),Tq=function(e,t,n){e&&!UV(e=n?e:e.prototype,kq)&&Oq(e,kq,{configurable:!0,value:t})},Aq=Eq.IteratorPrototype,_q=function(){return this},Pq=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return KV(n),function(e){if(!FV(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),jq=Eq.IteratorPrototype,Cq=Eq.BUGGY_SAFARI_ITERATORS,Nq=cW("iterator"),Lq=function(){return this},Iq=function(e,t,n,r,o,i,a){!function(e,t,n){var r=t+" Iterator";e.prototype=lq(Aq,{next:jV(1,n)}),Tq(e,r,!1),vq[r]=_q}(n,t,r);var s,u,l,c=function(e){if(e===o&&g)return g;if(!Cq&&e in p)return p[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},f=t+" Iterator",d=!1,p=e.prototype,h=p[Nq]||p["@@iterator"]||o&&p[o],g=!Cq&&h||c(o),v="Array"==t&&p.entries||h;if(v&&(s=wq(v.call(new e)),jq!==Object.prototype&&s.next&&(wq(s)!==jq&&(Pq?Pq(s,jq):"function"!=typeof s[Nq]&&ZV(s,Nq,Lq)),Tq(s,f,!0))),"values"==o&&h&&"values"!==h.name&&(d=!0,g=function(){return h.call(this)}),p[Nq]!==g&&ZV(p,Nq,g),vq[t]=g,o)if(u={values:c("values"),keys:i?g:c("keys"),entries:c("entries")},a)for(l in u)(Cq||d||!(l in p))&&E$(p,l,u[l]);else J$({target:t,proto:!0,forced:Cq||d},u);return u},Rq=x$.set,Mq=x$.getterFor("Array Iterator"),Fq=Iq(Array,"Array",(function(e,t){Rq(this,{type:"Array Iterator",target:MV(e),index:0,kind:t})}),(function(){var e=Mq(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");vq.Arguments=vq.Array,gq("keys"),gq("values"),gq("entries");var Dq={};Dq[cW("toStringTag")]="z";var zq="[object z]"===String(Dq),Bq=cW("toStringTag"),Uq="Arguments"==NV(function(){return arguments}()),Hq=zq?NV:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Bq))?n:Uq?NV(t):"Object"==(r=NV(t))&&"function"==typeof t.callee?"Arguments":r},Vq=zq?{}.toString:function(){return"[object "+Hq(this)+"]"};zq||E$(Object.prototype,"toString",Vq,{unsafe:!0});var $q=FW.charAt,Wq=x$.set,qq=x$.getterFor("String Iterator");Iq(String,"String",(function(e){Wq(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=qq(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=$q(n,r),t.index+=e.length,{value:e,done:!1})}));var Gq=function(e,t,n){for(var r in t)E$(e,r,t[r],n);return e},Kq=!kV((function(){return Object.isExtensible(Object.preventExtensions({}))})),Yq=xV((function(e){var t=XV.f,n=c$("meta"),r=0,o=Object.isExtensible||function(){return!0},i=function(e){t(e,n,{value:{objectID:"O"+ ++r,weakData:{}}})},a=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!FV(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!UV(e,n)){if(!o(e))return"F";if(!t)return"E";i(e)}return e[n].objectID},getWeakData:function(e,t){if(!UV(e,n)){if(!o(e))return!0;if(!t)return!1;i(e)}return e[n].weakData},onFreeze:function(e){return Kq&&a.REQUIRED&&o(e)&&!UV(e,n)&&i(e),e}};p$[n]=!0})),Xq=cW("iterator"),Zq=Array.prototype,Jq=function(e,t,n){if(IW(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}},Qq=cW("iterator"),eG=function(e){var t=e.return;if(void 0!==t)return KV(t.call(e)).value},tG=function(e,t){this.stopped=e,this.result=t},nG=function(e,t,n){var r,o,i,a,s,u,l,c,f=n&&n.that,d=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),g=Jq(t,f,1+d+h),v=function(e){return r&&eG(r),new tG(!0,e)},y=function(e){return d?(KV(e),h?g(e[0],e[1],v):g(e[0],e[1])):h?g(e,v):g(e)};if(p)r=e;else{if("function"!=typeof(o=function(e){if(null!=e)return e[Qq]||e["@@iterator"]||vq[Hq(e)]}(e)))throw TypeError("Target is not iterable");if(void 0!==(c=o)&&(vq.Array===c||Zq[Xq]===c)){for(i=0,a=C$(e.length);a>i;i++)if((s=y(e[i]))&&s instanceof tG)return s;return new tG(!1)}r=o.call(e)}for(u=r.next;!(l=u.call(r)).done;){try{s=y(l.value)}catch(e){throw eG(r),e}if("object"==typeof s&&s&&s instanceof tG)return s}return new tG(!1)},rG=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},oG=cW("iterator"),iG=!1;try{var aG=0,sG={next:function(){return{done:!!aG++}},return:function(){iG=!0}};sG[oG]=function(){return this},Array.from(sG,(function(){throw 2}))}catch(l){}var uG=function(e,t,n){var r=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),i=r?"set":"add",a=OV[e],s=a&&a.prototype,u=a,l={},c=function(e){var t=s[e];E$(s,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(o&&!FV(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return o&&!FV(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(o&&!FV(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(X$(e,"function"!=typeof a||!(o||s.forEach&&!kV((function(){(new a).entries().next()})))))u=n.getConstructor(t,e,r,i),Yq.REQUIRED=!0;else if(X$(e,!0)){var f=new u,d=f[i](o?{}:-0,1)!=f,p=kV((function(){f.has(1)})),h=function(e,t){if(!iG)return!1;var n=!1;try{var r={};r[oG]=function(){return{next:function(){return{done:n=!0}}}},function(e){new a(e)}(r)}catch(e){}return n}(),g=!o&&kV((function(){for(var e=new a,t=5;t--;)e[i](t,t);return!e.has(-0)}));h||((u=t((function(t,n){rG(t,u,e);var o=function(e,t,n){var r,o;return Pq&&"function"==typeof(r=t.constructor)&&r!==n&&FV(o=r.prototype)&&o!==n.prototype&&Pq(e,o),e}(new a,t,u);return null!=n&&nG(n,o[i],{that:o,AS_ENTRIES:r}),o}))).prototype=s,s.constructor=u),(p||g)&&(c("delete"),c("has"),r&&c("get")),(g||d)&&c(i),o&&s.clear&&delete s.clear}return l[e]=u,J$({global:!0,forced:u!=a},l),Tq(u,e),o||n.setStrong(u,e,r),u},lG=cW("species"),cG=function(e,t){var n;return Q$(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Q$(n.prototype)?FV(n)&&null===(n=n[lG])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},fG=[].push,dG=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,l,c,f){for(var d,p,h=zV(u),g=IV(h),v=Jq(l,c,3),y=C$(g.length),m=0,b=f||cG,w=t?b(u,y):n||a?b(u,0):void 0;y>m;m++)if((s||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:fG.call(w,d)}else switch(e){case 4:return!1;case 7:fG.call(w,d)}return i?-1:r||o?o:w}},pG={forEach:dG(0),map:dG(1),filter:dG(2),some:dG(3),every:dG(4),find:dG(5),findIndex:dG(6),filterOut:dG(7)},hG=Yq.getWeakData,gG=x$.set,vG=x$.getterFor,yG=pG.find,mG=pG.findIndex,bG=0,wG=function(e){return e.frozen||(e.frozen=new SG)},SG=function(){this.entries=[]},xG=function(e,t){return yG(e.entries,(function(e){return e[0]===t}))};SG.prototype={get:function(e){var t=xG(this,e);if(t)return t[1]},has:function(e){return!!xG(this,e)},set:function(e,t){var n=xG(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=mG(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}};var EG={getConstructor:function(e,t,n,r){var o=e((function(e,i){rG(e,o,t),gG(e,{type:t,id:bG++,frozen:void 0}),null!=i&&nG(i,e[r],{that:e,AS_ENTRIES:n})})),i=vG(t),a=function(e,t,n){var r=i(e),o=hG(KV(t),!0);return!0===o?wG(r).set(t,n):o[r.id]=n,e};return Gq(o.prototype,{delete:function(e){var t=i(this);if(!FV(e))return!1;var n=hG(e);return!0===n?wG(t).delete(e):n&&UV(n,t.id)&&delete n[t.id]},has:function(e){var t=i(this);if(!FV(e))return!1;var n=hG(e);return!0===n?wG(t).has(e):n&&UV(n,t.id)}}),Gq(o.prototype,n?{get:function(e){var t=i(this);if(FV(e)){var n=hG(e);return!0===n?wG(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return a(this,e,t)}}:{add:function(e){return a(this,e,!0)}}),o}};xV((function(e){var t,n=x$.enforce,r=!OV.ActiveXObject&&"ActiveXObject"in OV,o=Object.isExtensible,i=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},a=e.exports=uG("WeakMap",i,EG);if(a$&&r){t=EG.getConstructor(i,"WeakMap",!0),Yq.REQUIRED=!0;var s=a.prototype,u=s.delete,l=s.has,c=s.get,f=s.set;Gq(s,{delete:function(e){if(FV(e)&&!o(e)){var r=n(this);return r.frozen||(r.frozen=new t),u.call(this,e)||r.frozen.delete(e)}return u.call(this,e)},has:function(e){if(FV(e)&&!o(e)){var r=n(this);return r.frozen||(r.frozen=new t),l.call(this,e)||r.frozen.has(e)}return l.call(this,e)},get:function(e){if(FV(e)&&!o(e)){var r=n(this);return r.frozen||(r.frozen=new t),l.call(this,e)?c.call(this,e):r.frozen.get(e)}return c.call(this,e)},set:function(e,r){if(FV(e)&&!o(e)){var i=n(this);i.frozen||(i.frozen=new t),l.call(this,e)?f.call(this,e,r):i.frozen.set(e,r)}else f.call(this,e,r);return this}})}}));var OG={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},kG=cW("iterator"),TG=cW("toStringTag"),AG=Fq.values;for(var _G in OG){var PG=OV[_G],jG=PG&&PG.prototype;if(jG){if(jG[kG]!==AG)try{ZV(jG,kG,AG)}catch(l){jG[kG]=AG}if(jG[TG]||ZV(jG,TG,_G),OG[_G])for(var CG in Fq)if(jG[CG]!==Fq[CG])try{ZV(jG,CG,Fq[CG])}catch(l){jG[CG]=Fq[CG]}}}var NG=RegExp.prototype,LG=NG.toString,IG=kV((function(){return"/a/b"!=LG.call({source:"a",flags:"b"})})),RG="toString"!=LG.name;(IG||RG)&&E$(RegExp.prototype,"toString",(function(){var e=KV(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in NG)?vW.call(e):n)}),{unsafe:!0});var MG=XV.f,FG=Function.prototype,DG=FG.toString,zG=/^\s*function ([^ (]*)/;TV&&!("name"in FG)&&MG(FG,"name",{configurable:!0,get:function(){try{return DG.call(this).match(zG)[1]}catch(e){return""}}});var BG=function(e,t){var n=[][e];return!!n&&kV((function(){n.call(null,t||function(){throw 1},1)}))},UG=pG.forEach,HG=BG("forEach")?[].forEach:function(e){return UG(this,e,arguments.length>1?arguments[1]:void 0)};for(var VG in OG){var $G=OV[VG],WG=$G&&$G.prototype;if(WG&&WG.forEach!==HG)try{ZV(WG,"forEach",HG)}catch(l){WG.forEach=HG}}var qG=new WeakMap;function GG(e){return e.getMenuConfig("uploadImage")}function KG(e,t){if(null!=t){var n=Array.prototype.slice.call(t),r=[],o=GG(e),i=o.customUpload,a=o.base64LimitKB;a?n.forEach((function(t){t.size/1024>a?r.push(t):function(e,t){var n=new FileReader;n.readAsDataURL(t),n.onload=function(){var r=n.result;if(r){var o=r.toString();ZP(e,o,t.name,o)}}}(e,t)})):r=n,i?i(r,(function(t,n,r){return ZP(e,t,n,r)})):function(e,t){var n=GG(e),r=n.onSuccess,o=n.onProgress,i=n.onFailed,a=n.customInsert,s=n.onError,u=qG.get(e);null==u&&(u=function(e){var t=e.server,n=void 0===t?"":t,r=e.fieldName,o=void 0===r?"":r,i=e.maxFileSize,a=void 0===i?10485760:i,s=e.maxNumberOfFiles,u=void 0===s?100:s,l=e.meta,c=void 0===l?{}:l,f=e.metaWithUrl,d=void 0!==f&&f,p=e.headers,h=void 0===p?{}:p,g=e.withCredentials,v=void 0!==g&&g,y=e.timeout,m=void 0===y?1e4:y,b=e.onBeforeUpload,w=void 0===b?function(e){return e}:b,S=e.onSuccess,x=void 0===S?function(e,t){}:S,E=e.onError,O=void 0===E?function(e,t,n){console.error(e.name+" upload error",t,n),alert(e.name+" upload error")}:E,k=e.onProgress,T=void 0===k?function(e){}:k;if(!n)throw new Error("Cannot get upload server address\n没有配置上传地址");if(!o)throw new Error("Cannot get fieldName\n没有配置 fieldName");var A=n;d&&(A=function(e,t){var n=sd(e.split("#"),2),r=n[0],o=n[1],i=[];Or(t,(function(e,t){i.push(t+"="+e)}));var a=i.join("&");return r=r.indexOf("?")>0?r+"&"+a:r+"?"+a,o?r+"#"+o:r}(A,c));var _=gs({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:u},meta:c}).use(Su,{endpoint:A,headers:h,formData:!0,fieldName:o,bundle:!0,withCredentials:v,timeout:m});return _.on("upload-success",(function(e,t){var n=t.body;x(e,void 0===n?{}:n),_.removeFile(e.id)})),_.on("progress",(function(e){T(e)})),_.on("error",(function(e){console.error("wangEditor file upload error",e.stack)})),_.on("upload-error",(function(e,t,n){O(e,t,n),_.removeFile(e.id)})),_}($W($W({},n),{onProgress:function(t){e.showProgressBar(t),o&&o(t)},onSuccess:function(t,n){if(a)a(n,(function(t,n,r){return ZP(e,t,n,r)}));else{var o=n.errno,s=void 0===o?1:o,u=n.message,l=void 0===u?"上传失败\nUpload failed":u,c=n.data,f=void 0===c?[]:c;if(0!==s)return console.error("'"+t.name+"' upload failed",n),e.alert(l,"error"),void i(t,n);f.forEach((function(t){var n=t.url,r=void 0===n?"":n,o=t.alt,i=void 0===o?"":o,a=t.href;ZP(e,r,i,void 0===a?"":a)})),r(t,n)}},onError:function(t,n,r){var o=t.name;console.error("'"+o+" upload error",n,r);var i=Km("uploadImgModule.uploadError",{fileName:o});e.alert(i,"error"),s&&s(t,n,r)}})),qG.set(e,u)),t.forEach((function(e){if(null!=u){var t=e.name,n=e.type,r=e.size;u.addFile({name:t,type:n,size:r,data:e}),u.upload()}}))}(e,r)}}var YG=[].join,XG=IV!=Object,ZG=BG("join",",");J$({target:"Array",proto:!0,forced:XG||!ZG},{join:function(e){return YG.call(MV(this),void 0===e?",":e)}}),Ln.fn.append=Xn,Ln.fn.on=Un,Ln.fn.remove=er,Ln.fn.val=Bn,Ln.fn.click=rr,Ln.fn.hide=$n;var JG=function(){function e(){this.title=Km("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(e){return""},e.prototype.isActive=function(e){return!1},e.prototype.isDisabled=function(e){return eq(e)},e.prototype.getMenuConfig=function(e){return e.getMenuConfig("uploadImage")},e.prototype.exec=function(e,t){var n=this.getMenuConfig(e),r=n.allowedFileTypes,o=void 0===r?[]:r,i=n.customBrowseAndUpload;if(i)i((function(t,n,r){return ZP(e,t,n,r)}));else{var a="";o.length>0&&(a='accept="'+o.join(", ")+'"');var s=Ln("body"),u=Ln('<input type="file" '+a+" multiple/>");u.hide(),s.append(u),u.click(),u.on("change",(function(){var t=u[0].files;KG(e,t)}))}},e}(),QG={menus:[{key:"uploadImage",factory:function(){return new JG},config:{server:"",fieldName:"wangeditor-uploaded-file",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,headers:{},withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){},onError:function(e,t,n){},base64LimitKB:0}}],editorPlugin:function(e){var t=e.insertData,n=e;return n.insertData=function(r){if(eq(n))t(r);else{var o=r.files;o.length<=0?t(r):Array.prototype.slice.call(o).some((function(e){return"image"===WW(e.type.split("/"),1)[0]}))?KG(e,o):t(r)}},n}};qm("en",{highLightModule:{selectLang:"Language"}}),qm("zh-CN",{highLightModule:{selectLang:"选择语言"}});var eK="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function tK(e){var t={exports:{}};return e(t,t.exports),t.exports}var nK,rK,oK=function(e){return e&&e.Math==Math&&e},iK=oK("object"==typeof globalThis&&globalThis)||oK("object"==typeof window&&window)||oK("object"==typeof self&&self)||oK("object"==typeof eK&&eK)||function(){return this}()||Function("return this")(),aK=function(e){try{return!!e()}catch(e){return!0}},sK={}.toString,uK=function(e){return sK.call(e).slice(8,-1)},lK="".split,cK=aK((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==uK(e)?lK.call(e,""):Object(e)}:Object,fK=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},dK=function(e){return Object(fK(e))},pK=Math.ceil,hK=Math.floor,gK=function(e){return isNaN(e=+e)?0:(e>0?hK:pK)(e)},vK=Math.min,yK=function(e){return e>0?vK(gK(e),9007199254740991):0},mK=function(e){return"object"==typeof e?null!==e:"function"==typeof e},bK=Array.isArray||function(e){return"Array"==uK(e)},wK=!aK((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),SK=iK.document,xK=mK(SK)&&mK(SK.createElement),EK=!wK&&!aK((function(){return 7!=Object.defineProperty(("div",xK?SK.createElement("div"):{}),"a",{get:function(){return 7}}).a})),OK=function(e){if(!mK(e))throw TypeError(String(e)+" is not an object");return e},kK=function(e,t){if(!mK(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!mK(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!mK(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!mK(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},TK=Object.defineProperty,AK={f:wK?TK:function(e,t,n){if(OK(e),t=kK(t,!0),OK(n),EK)try{return TK(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},_K=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},PK=wK?function(e,t,n){return AK.f(e,t,_K(1,n))}:function(e,t,n){return e[t]=n,e},jK=function(e,t){try{PK(iK,e,t)}catch(n){iK[e]=t}return t},CK=iK["__core-js_shared__"]||jK("__core-js_shared__",{}),NK=tK((function(e){(e.exports=function(e,t){return CK[e]||(CK[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.13.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),LK={}.hasOwnProperty,IK=Object.hasOwn||function(e,t){return LK.call(dK(e),t)},RK=0,MK=Math.random(),FK=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++RK+MK).toString(36)},DK=iK,zK=function(e){return"function"==typeof e?e:void 0},BK=function(e,t){return arguments.length<2?zK(DK[e])||zK(iK[e]):DK[e]&&DK[e][t]||iK[e]&&iK[e][t]},UK=BK("navigator","userAgent")||"",HK=iK.process,VK=HK&&HK.versions,$K=VK&&VK.v8;$K?rK=(nK=$K.split("."))[0]<4?1:nK[0]+nK[1]:UK&&(!(nK=UK.match(/Edge\/(\d+)/))||nK[1]>=74)&&(nK=UK.match(/Chrome\/(\d+)/))&&(rK=nK[1]);var WK,qK=rK&&+rK,GK=!!Object.getOwnPropertySymbols&&!aK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qK&&qK<41})),KK=GK&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,YK=NK("wks"),XK=iK.Symbol,ZK=KK?XK:XK&&XK.withoutSetter||FK,JK=function(e){return IK(YK,e)&&(GK||"string"==typeof YK[e])||(GK&&IK(XK,e)?YK[e]=XK[e]:YK[e]=ZK("Symbol."+e)),YK[e]},QK=JK("species"),eY=function(e,t){var n;return bK(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!bK(n.prototype)?mK(n)&&null===(n=n[QK])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},tY=[].push,nY=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,l,c,f){for(var d,p,h=dK(u),g=cK(h),v=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function")}(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}(l,c,3),y=yK(g.length),m=0,b=f||eY,w=t?b(u,y):n||a?b(u,0):void 0;y>m;m++)if((s||m in g)&&(p=v(d=g[m],m,h),e))if(t)w[m]=p;else if(p)switch(e){case 3:return!0;case 5:return d;case 6:return m;case 2:tY.call(w,d)}else switch(e){case 4:return!1;case 7:tY.call(w,d)}return i?-1:r||o?o:w}},rY=[nY(0),nY(1),nY(2),nY(3),nY(4),nY(5),nY(6),nY(7)][0],oY=(WK=[].forEach)&&aK((function(){WK.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return rY(this,e,arguments.length>1?arguments[1]:void 0)};for(var iY in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var aY=iK[iY],sY=aY&&aY.prototype;if(sY&&sY.forEach!==oY)try{PK(sY,"forEach",oY)}catch(bh){sY.forEach=oY}}var uY={}.propertyIsEnumerable,lY=Object.getOwnPropertyDescriptor,cY={f:lY&&!uY.call({1:2},1)?function(e){var t=lY(this,e);return!!t&&t.enumerable}:uY},fY=function(e){return cK(fK(e))},dY=Object.getOwnPropertyDescriptor,pY={f:wK?dY:function(e,t){if(e=fY(e),t=kK(t,!0),EK)try{return dY(e,t)}catch(e){}if(IK(e,t))return _K(!cY.f.call(e,t),e[t])}},hY=Function.toString;"function"!=typeof CK.inspectSource&&(CK.inspectSource=function(e){return hY.call(e)});var gY,vY,yY,mY=CK.inspectSource,bY=iK.WeakMap,wY="function"==typeof bY&&/native code/.test(mY(bY)),SY=NK("keys"),xY={},EY=iK.WeakMap;if(wY||CK.state){var OY=CK.state||(CK.state=new EY),kY=OY.get,TY=OY.has,AY=OY.set;gY=function(e,t){if(TY.call(OY,e))throw new TypeError("Object already initialized");return t.facade=e,AY.call(OY,e,t),t},vY=function(e){return kY.call(OY,e)||{}},yY=function(e){return TY.call(OY,e)}}else{var _Y=SY["state"]||(SY.state=FK("state"));xY[_Y]=!0,gY=function(e,t){if(IK(e,_Y))throw new TypeError("Object already initialized");return t.facade=e,PK(e,_Y,t),t},vY=function(e){return IK(e,_Y)?e[_Y]:{}},yY=function(e){return IK(e,_Y)}}var PY={set:gY,get:vY,has:yY,enforce:function(e){return yY(e)?vY(e):gY(e,{})},getterFor:function(e){return function(t){var n;if(!mK(t)||(n=vY(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},jY=tK((function(e){var t=PY.get,n=PY.enforce,r=String(String).split("String");(e.exports=function(e,t,o,i){var a,s=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof t||IK(o,"name")||PK(o,"name",t),(a=n(o)).source||(a.source=r.join("string"==typeof t?t:""))),e!==iK?(s?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=o:PK(e,t,o)):u?e[t]=o:jK(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||mY(this)}))})),CY=Math.max,NY=Math.min,LY=function(e){return function(t,n,r){var o,i=fY(t),a=yK(i.length),s=function(e,t){var n=gK(e);return n<0?CY(n+t,0):NY(n,t)}(r,a);if(e&&n!=n){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},IY=(LY(!0),LY(!1)),RY=function(e,t){var n,r=fY(e),o=0,i=[];for(n in r)!IK(xY,n)&&IK(r,n)&&i.push(n);for(;t.length>o;)IK(r,n=t[o++])&&(~IY(i,n)||i.push(n));return i},MY=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],FY=MY.concat("length","prototype"),DY={f:Object.getOwnPropertyNames||function(e){return RY(e,FY)}},zY={f:Object.getOwnPropertySymbols},BY=BK("Reflect","ownKeys")||function(e){var t=DY.f(OK(e)),n=zY.f;return n?t.concat(n(e)):t},UY=function(e,t){for(var n=BY(t),r=AK.f,o=pY.f,i=0;i<n.length;i++){var a=n[i];IK(e,a)||r(e,a,o(t,a))}},HY=/#|\.prototype\./,VY=function(e,t){var n=WY[$Y(e)];return n==GY||n!=qY&&("function"==typeof t?aK(t):!!t)},$Y=VY.normalize=function(e){return String(e).replace(HY,".").toLowerCase()},WY=VY.data={},qY=VY.NATIVE="N",GY=VY.POLYFILL="P",KY=VY,YY=pY.f,XY=function(e,t){var n,r,o,i,a,s=e.target,u=e.global,l=e.stat;if(n=u?iK:l?iK[s]||jK(s,{}):(iK[s]||{}).prototype)for(r in t){if(i=t[r],o=e.noTargetGet?(a=YY(n,r))&&a.value:n[r],!KY(u?r:s+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;UY(i,o)}(e.sham||o&&o.sham)&&PK(i,"sham",!0),jY(n,r,i,e)}},ZY=Object.keys||function(e){return RY(e,MY)},JY=Object.assign,QY=Object.defineProperty,eX=!JY||aK((function(){if(wK&&1!==JY({b:1},JY(QY({},"a",{enumerable:!0,get:function(){QY(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=JY({},e)[n]||ZY(JY({},t)).join("")!=r}))?function(e,t){for(var n=dK(e),r=arguments.length,o=1,i=zY.f,a=cY.f;r>o;)for(var s,u=cK(arguments[o++]),l=i?ZY(u).concat(i(u)):ZY(u),c=l.length,f=0;c>f;)s=l[f++],wK&&!a.call(u,s)||(n[s]=u[s]);return n}:JY;XY({target:"Object",stat:!0,forced:Object.assign!==eX},{assign:eX});var tX=tK((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},o={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},o.util.type(t)){case"Object":if(i=o.util.objId(t),n[i])return n[i];for(var a in r={},n[i]=r,t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=o.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach((function(t,o){r[o]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=o.util.clone(o.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||o.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var u in n)n.hasOwnProperty(u)&&(a[u]=n[u]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,o.languages.DFS(o.languages,(function(t,n){n===l&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,r,i){i=i||{};var a=o.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var u=t[s],l=o.util.type(u);"Object"!==l||i[a(u)]?"Array"!==l||i[a(u)]||(i[a(u)]=!0,e(u,n,s,i)):(i[a(u)]=!0,e(u,n,null,i))}}},plugins:{},highlightAll:function(e,t){o.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),o.hooks.run("before-all-elements-highlight",r);for(var i,a=0;i=r.elements[a++];)o.highlightElement(i,!0===t,r.callback)},highlightElement:function(n,r,i){var a=o.util.getLanguage(n),s=o.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var u=n.parentElement;u&&"pre"===u.nodeName.toLowerCase()&&(u.className=u.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:s,code:n.textContent};function c(e){l.highlightedCode=e,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),i&&i.call(l.element)}if(o.hooks.run("before-sanity-check",l),(u=l.element.parentElement)&&"pre"===u.nodeName.toLowerCase()&&!u.hasAttribute("tabindex")&&u.setAttribute("tabindex","0"),!l.code)return o.hooks.run("complete",l),void(i&&i.call(l.element));if(o.hooks.run("before-highlight",l),l.grammar)if(r&&e.Worker){var f=new Worker(o.filename);f.onmessage=function(e){c(e.data)},f.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(o.highlight(l.code,l.grammar,l.language));else c(o.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return o.hooks.run("before-tokenize",r),r.tokens=o.tokenize(r.code,r.grammar),o.hooks.run("after-tokenize",r),i.stringify(o.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new u;return l(o,o.head,e),s(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=o.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=o.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function a(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function s(e,t,n,r,u,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],v=g.inside,y=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var S=g.pattern||g,x=r.next,E=u;x!==t.tail&&!(f&&E>=f.reach);E+=x.value.length,x=x.next){var O=x.value;if(t.length>e.length)return;if(!(O instanceof i)){var k,T=1;if(m){if(!(k=a(S,E,e,y)))break;var A=k.index,_=k.index+k[0].length,P=E;for(P+=x.value.length;A>=P;)P+=(x=x.next).value.length;if(E=P-=x.value.length,x.value instanceof i)continue;for(var j=x;j!==t.tail&&(P<_||"string"==typeof j.value);j=j.next)T++,P+=j.value.length;T--,O=e.slice(E,P),k.index-=E}else if(!(k=a(S,0,O,y)))continue;A=k.index;var C=k[0],N=O.slice(0,A),L=O.slice(A+C.length),I=E+O.length;f&&I>f.reach&&(f.reach=I);var R=x.prev;if(N&&(R=l(t,R,N),E+=N.length),c(t,R,T),x=l(t,R,new i(d,v?o.tokenize(C,v):C,b,C)),L&&l(t,x,L),T>1){var M={cause:d+","+h,reach:I};s(e,t,n,x.prev,E,M),f&&M.reach>f.reach&&(f.reach=M.reach)}}}}}}function u(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=o,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach((function(t){r+=e(t,n)})),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),o.hooks.run("wrap",i);var s="";for(var u in i.attributes)s+=" "+u+'="'+(i.attributes[u]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(o.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,a=n.immediateClose;e.postMessage(o.highlight(i,o.languages[r],r)),a&&e.close()}),!1),o):o;var f=o.util.currentScript();function d(){o.manual||o.highlightAll()}if(f&&(o.filename=f.src,f.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var p=document.readyState;"loading"===p||"interactive"===p&&f&&f.defer?document.addEventListener("DOMContentLoaded",d):window.requestAnimationFrame?window.requestAnimationFrame(d):window.setTimeout(d,16)}return o}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
/**
 * Prism: Lightweight, robust, elegant syntax highlighting
 *
 * @license MIT <https://opensource.org/licenses/MIT>
 * @author Lea Verou <https://lea.verou.me>
 * @namespace
 * @public
 */e.exports&&(e.exports=t),void 0!==eK&&(eK.Prism=t),t.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata:/<!\[CDATA\[[\s\S]*?\]\]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:o},t.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(e,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,function(){if(void 0!==t&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",r='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',o=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",(function(e){e.selector+=", "+r})),t.hooks.add("before-sanity-check",(function(o){var i=o.element;if(i.matches(r)){o.code="",i.setAttribute(n,"loading");var s=i.appendChild(document.createElement("CODE"));s.textContent="Loading…";var u=i.getAttribute("data-src"),l=o.language;if("none"===l){var c=(/\.(\w+)$/.exec(u)||[,"none"])[1];l=e[c]||c}a(s,l),a(i,l);var f=t.plugins.autoloader;f&&f.loadLanguages(l);var d=new XMLHttpRequest;d.open("GET",u,!0),d.onreadystatechange=function(){4==d.readyState&&(d.status<400&&d.responseText?(i.setAttribute(n,"loaded"),s.textContent=d.responseText,t.highlightElement(s)):(i.setAttribute(n,"failed"),d.status>=400?s.textContent="✖ Error "+d.status+" while fetching file: "+d.statusText:s.textContent="✖ Error: File does not exist or is empty"))},d.send(null)}})),t.plugins.fileHighlight={highlight:function(e){for(var n,o=(e||document).querySelectorAll(r),i=0;n=o[i++];)t.highlightElement(n)}};var i=!1;t.fileHighlight=function(){i||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),i=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function a(e,t){var n=e.className;n=n.replace(o," ")+" language-"+t,e.className=n.replace(/\s+/g," ").trim()}}()}));!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(Prism),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)(?!\s*[^\s_${}*a-zA-Z\xA0-\uFFFF])/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism),Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata:/<!\[CDATA\[[\s\S]*?\]\]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],r=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:r,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},s=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:s,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:s,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:r,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){/<\?/.test(t.code)&&e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[r,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b[a-z_]\w*\s*<(?:[^<>]|<(?:[^<>])*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface struct",a="add alias and ascending async await by descending from get global group into join let nameof not notnull on or orderby partial remove select set unmanaged value when where",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function u(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=u(i),c=RegExp(u(o+" "+i+" "+a+" "+s)),f=u(i+" "+a+" "+s),d=u(o+" "+i+" "+s),p=r(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,v=t(/<<0>>(?:\s*<<1>>)?/.source,[g,p]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,v]),m=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,m]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[p,h,m]),S=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[S,y,m]),E={keyword:c,punctuation:/[<>()?,.:[\]]/},O=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,k=/"(?:\\.|[^\\"\r\n])*"/.source,T=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[T]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[k]),lookbehind:!0,greedy:!0},{pattern:RegExp(O),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,x]),lookbehind:!0,inside:E},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,v]),lookbehind:!0,inside:E},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:E},{pattern:n(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:E},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,d,g]),inside:E}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,y]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,p]),inside:{function:n(/^<<0>>/.source,[g]),generic:{pattern:RegExp(p),alias:"class-name",inside:E}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>)(?:\s*,\s*(?:<<3>>|<<4>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,v,g,x,c.source]),lookbehind:!0,inside:{keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:E},punctuation:/,/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var A=k+"|"+O,_=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[A]),P=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),j=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,C=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,P]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[j,C]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[j]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[P]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var N=/:[^}\r\n]+/.source,L=r(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[_]),2),I=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,N]),R=r(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[A]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[R,N]);function F(t,r){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,N]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[I]),lookbehind:!0,greedy:!0,inside:F(I,L)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:F(M,R)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby}(Prism),Prism.languages.swift=Prism.languages.extend("clike",{string:{pattern:/("|')(?:\\(?:\((?:[^()]|\([^)]+\))+\)|\r\n|[^(])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/\\\((?:[^()]|\([^)]+\))+\)/,inside:{delimiter:{pattern:/^\\\(|\)$/,alias:"variable"}}}}},keyword:/\b(?:as|associativity|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic(?:Type)?|else|enum|extension|fallthrough|final|for|func|get|guard|if|import|in|infix|init|inout|internal|is|lazy|left|let|mutating|new|none|nonmutating|operator|optional|override|postfix|precedence|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|Self|set|some|static|struct|subscript|super|switch|throws?|try|Type|typealias|unowned|unsafe|var|weak|where|while|willSet|__(?:COLUMN__|FILE__|FUNCTION__|LINE__))\b/,number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,constant:/\b(?:nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,atrule:/@\b(?:IB(?:Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Copying|Managed)|objc|UIApplicationMain|auto_closure)\b/,builtin:/\b(?:[A-Z]\S+|abs|advance|alignof(?:Value)?|assert|contains|count(?:Elements)?|debugPrint(?:ln)?|distance|drop(?:First|Last)|dump|enumerate|equal|filter|find|first|getVaList|indices|isEmpty|join|last|lexicographicalCompare|map|max(?:Element)?|min(?:Element)?|numericCast|overlaps|partition|print(?:ln)?|reduce|reflect|reverse|sizeof(?:Value)?|sort(?:ed)?|split|startsWith|stride(?:of(?:Value)?)?|suffix|swap|toDebugString|toString|transcode|underestimateCount|unsafeBitCast|with(?:ExtendedLifetime|Unsafe(?:MutablePointers?|Pointers?)|VaList))\b/}),Prism.languages.swift.string.inside.interpolation.inside.rest=Prism.languages.swift,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(Prism),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],l=/language-(.+)/.exec(i);if(l){n=l[1];break}}var c=e.languages[n];if(c)t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n)):s[t]||e})),c,n);else if(n&&"none"!==n&&e.plugins.autoloader){var f="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism);var nX=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function rX(e){return"string"==typeof e?e.length:"string"==typeof e.content?e.content.length:e.content.reduce((function(e,t){return e+rX(t)}),0)}var oX=function(){var e=OK(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function iX(e,t){return RegExp(e,t)}var aX,sX,uX={UNSUPPORTED_Y:aK((function(){var e=iX("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:aK((function(){var e=iX("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},lX=RegExp.prototype.exec,cX=NK("native-string-replace",String.prototype.replace),fX=lX,dX=(aX=/a/,sX=/b*/g,lX.call(aX,"a"),lX.call(sX,"a"),0!==aX.lastIndex||0!==sX.lastIndex),pX=uX.UNSUPPORTED_Y||uX.BROKEN_CARET,hX=void 0!==/()??/.exec("")[1];(dX||hX||pX)&&(fX=function(e){var t,n,r,o,i=this,a=pX&&i.sticky,s=oX.call(i),u=i.source,l=0,c=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),c=String(e).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==e[i.lastIndex-1])&&(u="(?: "+u+")",c=" "+c,l++),n=new RegExp("^(?:"+u+")",s)),hX&&(n=new RegExp("^"+u+"$(?!\\s)",s)),dX&&(t=i.lastIndex),r=lX.call(a?n:i,c),a?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:dX&&r&&(i.lastIndex=i.global?r.index+r[0].length:t),hX&&r&&r.length>1&&cX.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r}),XY({target:"RegExp",proto:!0,forced:/./.exec!==fX},{exec:fX});var gX={};gX[JK("toStringTag")]="z";var vX="[object z]"===String(gX),yX=JK("toStringTag"),mX="Arguments"==uK(function(){return arguments}()),bX=vX?uK:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),yX))?n:mX?uK(t):"Object"==(r=uK(t))&&"function"==typeof t.callee?"Arguments":r},wX=vX?{}.toString:function(){return"[object "+bX(this)+"]"};vX||jY(Object.prototype,"toString",wX,{unsafe:!0});var SX=RegExp.prototype,xX=SX.toString,EX=aK((function(){return"/a/b"!=xX.call({source:"a",flags:"b"})})),OX="toString"!=xX.name;(EX||OX)&&jY(RegExp.prototype,"toString",(function(){var e=OK(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in SX)?oX.call(e):n)}),{unsafe:!0});var kX=function(){function e(){this.title=Km("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig("codeSelectLang").codeLangs,r=void 0===n?[]:n;t.push({text:"plain text",value:""}),r.forEach((function(e){var n=e.text,r=e.value;t.push({text:n,value:r})}));var o=this.getValue(e);return t.forEach((function(e){e.value===o?e.selected=!0:delete e.selected})),t},e.prototype.isActive=function(e){return!1},e.prototype.getValue=function(e){var t=this.getSelectCodeElem(e);return null==t?"":Te.isElement(t)&&t.language||""},e.prototype.isDisabled=function(e){return null==e.selection||!this.getSelectCodeElem(e)},e.prototype.exec=function(e,t){if(null!=this.getSelectCodeElem(e)){var n={language:t.toString()};ct.setNodes(e,n,{match:function(e){return _p.checkNodeType(e,"code")}})}},e.prototype.getSelectCodeElem=function(e){var t=_p.getSelectedNodeByType(e,"code");if(null==t)return null;var n=_p.getParentNode(e,t);return Te.isElement(n)?"pre"!==n.type?null:t:null},e}(),TX={renderTextStyle:function(e,t){var n=e,r=t,o="";return nX.forEach((function(e){n[e]&&(o=e)})),o&&function(e,t){null==e.data&&(e.data={});var n=e.data;null==n.props&&(n.props={}),Object.assign(n.props,{className:t})}(r,o="token "+o),r},menus:[{key:"codeSelectLang",factory:function(){return new kX},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t,n){var r=e.language,o=void 0===r?"":r;return"<code "+(o?'class="language-'+o+'"':"")+">"+t+"</code>"}}]},AX=/"/g;XY({target:"String",proto:!0,forced:aK((function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3}))},{anchor:function(e){return"a","name",t=e,n=String(fK(this)),r="<a",(r+=' name="'+String(t).replace(AX,"&quot;")+'"')+">"+n+"</a>";var t,n,r}});var _X=function(e){var t,n,r,o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1],s=[],u=function(e){if(!Ye.isText(e))return null;var t=_p.getParentNode(null,e);if(t&&"code"===_p.getNodeType(t)){var n=_p.getParentNode(null,t);if(n&&"pre"===_p.getNodeType(n))return t}return null}(i);if(null==u)return s;var l=u.language,c=void 0===l?"":l;if(!c)return s;var f=function(e,t){return t?tX.tokenize(e.text,tX.languages[t]):[]}(i,c),d=0;try{for(var p=
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(f),h=p.next();!h.done;h=p.next()){var g=h.value,v=d+rX(g);"string"!=typeof g&&s.push(((r={})[g.type]=!0,r.anchor={path:a,offset:d},r.focus={path:a,offset:v},r)),d=v}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return s},PX=function(){return(PX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function jX(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}var CX=function(){function e(){throw new Error("不能实例化\nCan not construct a instance")}return e.setEditorConfig=function(e){void 0===e&&(e={}),this.editorConfig=PX(PX({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){void 0===e&&(e={}),this.simpleEditorConfig=PX(PX({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){void 0===e&&(e={}),this.toolbarConfig=PX(PX({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){void 0===e&&(e={}),this.simpleToolbarConfig=PX(PX({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){!function(e,t){var n=e.key,r=e.factory,o=e.config,i=id(id({},o),t||{});if(null!=Cp[n])throw new Error("Duplicated key '"+n+"' in menu items");Cp[n]=r,function(e,t){null!=t&&(jp[e]=t)}(n,i)}(e,t)},e.registerRenderElem=function(e){!function(e){var t=e.type,n=e.renderElem;Zv[t||""]=n}(e)},e.registerRenderTextStyle=function(e){!function(e){Xv.push(e)}(e)},e.registerElemToHtml=function(e){!function(e){var t=e.type,n=e.elemToHtml;Bp[t||""]=n}(e)},e.registerTextToHtml=function(e){!function(e){zp.push(e)}(e)},e.registerTextStyleToHtml=function(e){!function(e){Dp.push(e)}(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function NX(e){var t=e.menus,n=e.renderElems,r=e.renderTextStyle,o=e.elemsToHtml,i=e.textToHtml,a=e.textStyleToHtml,s=e.editorPlugin;t&&t.forEach((function(e){return CX.registerMenu(e)})),n&&n.forEach((function(e){return CX.registerRenderElem(e)})),r&&CX.registerRenderTextStyle(r),o&&o.forEach((function(e){return CX.registerElemToHtml(e)})),i&&CX.registerTextToHtml(i),a&&CX.registerTextStyleToHtml(a),s&&CX.registerPlugin(s)}PI.forEach((function(e){return NX(e)})),NX(rF),NX(xB),NX(wV),NX(QG),NX(TX);var LX='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>';var IX,RX=Object.keys||function(e){return zE(e,BE)},MX=jx?Object.defineProperties:function(e,t){Jx(e);for(var n,r=RX(t),o=r.length,i=0;o>i;)eE.f(e,n=r[i++],t[n]);return e},FX=_E("document","documentElement"),DX=vE("IE_PROTO"),zX=function(){},BX=function(e){return"<script>"+e+"<\/script>"},UX=function(){try{IX=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;UX=IX?function(e){e.write(BX("")),e.close();var t=e.parentWindow.Object;return e=null,t}(IX):((t=Kx("iframe")).style.display="none",FX.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(BX("document.F=Object")),e.close(),e.F);for(var n=BE.length;n--;)delete UX.prototype[BE[n]];return UX()};yE[DX]=!0;var HX=Object.create||function(e,t){var n;return null!==e?(zX.prototype=Jx(e),n=new zX,zX.prototype=null,n[DX]=e):n=UX(),void 0===t?n:MX(n,t)},VX=mO("unscopables"),$X=Array.prototype;null==$X[VX]&&eE.f($X,VX,{configurable:!0,value:HX(null)});var WX,qX=FE.includes;eO({target:"Array",proto:!0},{includes:function(e){return qX(this,e,arguments.length>1?arguments[1]:void 0)}}),WX="includes",$X[VX][WX]=!0;var GX=[{desc:"选中链接 selected link",match:function(e,t){return _p.checkNodeType(t,"link")},menuKeys:["editLink","unLink","viewLink"]},{desc:"选中图片 selected image",match:function(e,t){return _p.checkNodeType(t,"image")},menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},{desc:"选中视频 selected video",match:function(e,t){return _p.checkNodeType(t,"video")},menuKeys:["deleteVideo"]},{desc:"选中代码块 selected code block",match:function(e,t){return _p.checkNodeType(t,"pre")},menuKeys:["codeBlock","codeSelectLang"]},{desc:"选中表格 selected table",match:function(e,t){return _p.checkNodeType(t,"table")},menuKeys:["tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]}];function KX(){return jX(jX([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(GX)),[{desc:"选中文本 selected text",match:function(e,t){var n=e.selection;return null!=n&&(!We.isCollapsed(n)&&(!_p.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!!["pre","code"].includes(n)||void 0}))&&!!Ye.isText(t)))},menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}])}var YX={hoverbarKeys:KX()};CX.setEditorConfig(PX(PX({},YX),{decorate:_X}));var XX={hoverbarKeys:GX};CX.setSimpleEditorConfig(PX(PX({},XX),{decorate:_X}));var ZX={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:Km("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList",{key:"group-justify",title:Km("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:Km("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:Km("editor.image"),iconSvg:LX,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};CX.setToolbarConfig(ZX);var JX={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:Km("editor.image"),iconSvg:LX,menuKeys:["insertImage","uploadImage"]},"insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function QX(e){void 0===e&&(e={});var t=e.textareaSelector,n=void 0===t?"":t,r=e.content,o=void 0===r?[]:r,i=e.config,a=void 0===i?{}:i,s=e.mode,u="simple"===(void 0===s?"default":s)?CX.simpleEditorConfig:CX.editorConfig;return Yy({textareaSelector:n,config:PX(PX({},u),a),content:o,plugins:CX.plugins})}function eZ(e){var t=e.toolbarSelector,n=e.editor,r=e.config,o=void 0===r?{}:r,i=e.mode,a=void 0===i?"default":i;if(!t)throw new Error("Cannot find 'toolbarSelector' when create toolbar");var s="simple"===a?CX.simpleToolbarConfig:CX.toolbarConfig;return function(e,t){if(null==e)throw new Error("Cannot create toolbar, because editor is null");var n=t.toolbarSelector,r=t.config,o=void 0===r?{}:r;if(function(e,t){return Ky(e,"data-w-e-toolbar",t)}(e,n))throw new Error("Repeated create toolbar by toolbarSelector '"+n+"'");var i=id({toolbarKeys:[],excludeKeys:[]},o||{}),a=new Jy(n,i);return Bd.set(a,e),Ud.set(e,a),a}(n,{toolbarSelector:t,config:PX(PX({},s),o)})}CX.setSimpleToolbarConfig(JX);export default{};export{CX as Boot,_p as DomEditor,je as SlateEditor,Te as SlateElement,Ce as SlateLocation,Ie as SlateNode,De as SlatePath,He as SlatePoint,We as SlateRange,Ye as SlateText,ct as SlateTransforms,Jy as Toolbar,QX as createEditor,eZ as createToolbar,qm as i18nAddResources,Gm as i18nChangeLanguage};
//# sourceMappingURL=index.mjs.map
